Haskell Starter
Created at 2016-03-18T18:09:12.000Z

My playground repository is here: https://github.com/hi-ogawa/haskell_playground.

General

Development Tips

  • ghci commands
## :type <expr> ##

λ> :t map
map :: (a -> b) -> [a] -> [b]

## :info <name> ##

λ> :i map
map :: (a -> b) -> [a] -> [b]     -- Defined in ‘GHC.Base’
λ> :i Ord
class Eq a => Ord a where
  compare :: a -> a -> Ordering
  ...

## :kind <type> ##

λ> :k Ord
Ord :: * -> ghc-prim-0.4.0.0:GHC.Prim.Constraint
λ> :k []
[] :: * -> *

## :browse <mod> ##

λ> :bro Data.List
isSubsequenceOf :: Eq a => [a] -> [a] -> Bool
(!!) :: [a] -> Int -> a

Miscellaneous