Skip to content

Instantly share code, notes, and snippets.

@solidsnack
Created January 31, 2010 02:33
Show Gist options
  • Save solidsnack/290856 to your computer and use it in GitHub Desktop.
Save solidsnack/290856 to your computer and use it in GitHub Desktop.
-- Eval in Haskell.
import Data.Word
import Language.Haskell.Interpreter
import Language.Haskell.Interpreter.Server
wordy = do
h <- start
runIn h go
where
go = do
setImports ["Data.Word", "GHC.Enum"]
interpret "minBound" (as :: Word32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment