Reputation: 100151
I installed haskell-platform on my Ubuntu system. Now I need to run
ghci -package haskell98 -hide-package base
in order to try out simple things like:
map Char.toUpper "Hello World"
Is there a way to make this the default?
Upvotes: 3
Views: 48
Reputation: 120751
Well, you can just put those options in your ~/.ghci
file:
:set -hide-package base
:set -package haskell98
But, I really recommend you don't do this. Just get used to the modern libraries.
GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help
Prelude> map Data.Char.toUpper "Hello"
"HELLO"
Or
Prelude> :m +Data.Char
Prelude Data.Char> toUpper <$> "Hello"
"HELLO"
Upvotes: 5