Friday, 29 April 2016

Haskell: ghc Vs ghci


ghc’ compiles Haskell application to binary code, where as ghci is an interpreter, where you can evaluate expressions and get results immediately.
$ ghci
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
Prelude> 
Prelude> 10 + 20
30
Prelude> 
Prelude> 10 + 20 * 30
610


Previous                                                 Next                                                 Home

No comments:

Post a Comment