mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 18:31:43 +03:00
8cb17de3f9
My first attempt at refolding natural constants led to all names being printed with their namespace prefixes. This fixes that, most notably by introducing the massive `mapPTermM` function in `Idris.Syntax`.
9 lines
439 B
Plaintext
9 lines
439 B
Plaintext
1/1: Building CaseBlock (CaseBlock.idr)
|
|
Main> Main.foo : (x : Nat) -> (case x of { 0 => Nat -> Nat ; S k => Nat })
|
|
Main> Prelude.elem : Eq a => a -> List a -> Bool
|
|
elem x [] = False
|
|
elem x (y :: ys) = if x == y then True else elem x ys
|
|
Main> PrimIO.io_bind : (1 act : IO a) -> (1 k : (a -> IO b)) -> IO b
|
|
io_bind (MkIO fn) = \1 k => MkIO (\1 w => (case fn w of { MkIORes x' w' => case k x' of { MkIO res => res w' } }))
|
|
Main> Bye for now!
|