Haskell Tips retweeted
So apparently a lot of peeps still don't know you can avoid pressing 'up' a billion times going through :reload's in GHCi by adding this to your `~/.haskeline` file:
historyDuplicates: IgnoreAll
Have fun.
Haskell Tips retweeted
Open this page: hackage.haskell.org/package/…
... and then type 's' to open a quick search for any exported symbols in lens
Haskell Tips retweeted
#Haskell pro-tip: module A(module A) is equivalent to module A; useful if you want to export everything and reexport imported decls
Haskell Tips retweeted
`ExceptT` forms two monads. Take the monad laws and replace `return` with `throwE` and `(>>=)` with `catchE` and the laws still work.
Haskell Tips retweeted
Enable the #Haskell GHCi multiline setting in your ~/.ghci file: downloads.haskell.org/~ghc/7… (or just know about the :{ command)
Haskell Tips retweeted
Consider using -fwarn-incomplete-uni-patterns for even more safety at compile time. CC @HaskellTips
Haskell Tips retweeted
Replying to @HaskellTips
@HaskellTips Wrt objects, I think it’s more accurate to say that type constructors map types to types.
Maybe :: * -> *
Haskell Tips retweeted
Replying to @HaskellTips
@HaskellTips Always enable ScopedTypeVariables to do this:
do
(x :: SomeType) <- someComp
...
Very useful for debugging monadic code.
Haskell Tips retweeted
Replying to @HaskellTips
@HaskellTips [A..D] parses incorrectly as a qualified . operator from module A; see ghc.haskell.org/trac/haskell… or just write [A .. D].
Haskell Tips retweeted
Replying to @HaskellTips
@HaskellTips It does complain about some partial pattern matches in do-notation. "do getArgs; return ()" generates a warning with -Wall.












