Skip to content

Instantly share code, notes, and snippets.

@travitch
Created May 19, 2013 16:23
Show Gist options
  • Save travitch/5608146 to your computer and use it in GitHub Desktop.
Save travitch/5608146 to your computer and use it in GitHub Desktop.
A handy .ghci configuration to replace many prelude functions with their more general forms
import Prelude hiding ( mapM, mapM_, catch, sequence, sequence_, foldl, foldr, concat, concatMap, and, or, any, all, elem, notElem, maximum, minimum, sum, product, foldl1, foldr1, (.), id)
import Control.Applicative
import Control.Arrow
import Control.Category
import Control.Exception
import Data.Foldable
import Data.Monoid
import Data.Traversable
:set prompt "> "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment