Quick actions

cmd+k|ctrl+k

Navigation

Languages

Dependent type example

Snippet info

Language

Idris

Visibility

public

Author

mindbound

Created

2016-12-08T01:10:48Z

Updated

2016-12-08T01:11:20Z

module Main

item : (b : Bool) -> if b then Nat else List Nat
item True = 42
item False = [1, 2, 3]

main : IO ()
main = putStrLn $ show $ item False
INFO