flesh out example

This commit is contained in:
Allele Dev 2016-02-01 21:47:14 +00:00
parent d62a40947b
commit 72c19abc4f
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,18 @@
{-# LANGUAGE DataKinds #-}
module Main where
import Control.Monad.Freer
import Teletype
runner :: Eff '[Teletype] ()
runner = do
x <- getLine'
putStrLn' x
y <- getLine'
putStrLn' y
main :: IO ()
main = print "placeholder"
main = do
let xs = runTeletypePure ["cat", "fish"] runner
print xs
runTeletype runner

View File

@ -2,4 +2,4 @@ flags: {}
packages:
- '.'
extra-deps: []
resolver: lts-3.4
resolver: lts-5.1