Last active
July 30, 2017 01:59
-
-
Save puffnfresh/0def5a2c09d7da144c0d7018b88bcfc2 to your computer and use it in GitHub Desktop.
Revisions
-
puffnfresh revised this gist
Dec 7, 2016 . No changes.There are no files selected for viewing
-
puffnfresh revised this gist
Dec 7, 2016 . 1 changed file with 1 addition and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,18 +2,11 @@ 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 -
puffnfresh created this gist
Dec 7, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ module Main where import IO.Primitive as Prim open import Coinduction open import Data.BoundedVec.Inefficient using (toList) open import Data.Colist using (take) open import Data.Nat open import Data.String using (Costring; String; fromList) open import Data.Unit open import IO costringToString : ℕ → Costring → String costringToString n c = fromList (toList (take n c)) cat : IO ⊤ cat = ♯ getContents >>= (\cs → ♯ (putStrLn (costringToString 2048 cs))) main : Prim.IO ⊤ main = run cat