PDA

View Full Version : how to solve library between sudo ghci and ghci in haskell



zerop2
September 26th, 2015, 09:21 AM
some library must need sudo ghci in order to succeed to install

but some library only can run in normal user mode, ghci

when i use with normal user mode ghci, i can not use the library which installed with sudo cabal install before

when run in sudo ghci mode, has error, only no error in normal user mode

*Main> let aa = splitOn " " "head tail [1,2,3]"
*Main> let bb = filter (not . null) aa


<interactive>:21:22: Not in scope: `.'