Last active
July 30, 2017 01:59
-
-
Save puffnfresh/0def5a2c09d7da144c0d7018b88bcfc2 to your computer and use it in GitHub Desktop.
cat in Agda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import IO.Primitive as Prim | |
open import Coinduction | |
open import Data.Unit | |
open import IO | |
cat : IO ⊤ | |
cat = ♯ getContents >>= (\cs → ♯ (putStr∞ cs)) | |
main : Prim.IO ⊤ | |
main = run cat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment