Idris2/tests/idris2/coverage/coverage011/Sing.idr
2023-09-07 14:57:22 +01:00

14 lines
250 B
Idris

module Sing
%default total
data Fing : Type -> Type where
StringFing : String -> Fing String
BoolFing : Bool -> Fing Bool
stringFing : Fing String -> String
stringFing (StringFing s) = s
boolFing : Fing Bool -> Bool
boolFing (BoolFing b) = b