Literate programming in Haskell

February 16, 2019

x :: Int
x = 6

y :: Int
y = 7

z :: Int
z = x * y
main :: IO ()
main = do
  putStrLn $ "z: " <> show z
$ curl https://earldouglas.com/posts/reference/literate/haskell.md |
  codedown haskell |
  runhaskell
z: 42