Idris2/tests/idris2/casetree001/Issue762.idr

12 lines
180 B
Idris
Raw Normal View History

2022-01-19 14:10:05 +03:00
import Data.Singleton
2022-01-19 14:10:05 +03:00
%default total
-- data constructors
f : Singleton (MkPair True) -> Bool
f (Val _) = True
-- type constructors
g : Singleton Maybe -> Bool
g (Val _) = True