[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:26:5: error:
• Couldn't match type ‘a’ with ‘'True’
‘a’ is a rigid type variable bound by
the type signature for:
fromSing :: forall (a :: Bool). Sing a -> Bool
at prog.hs:25:3-10
Expected type: Sing a
Actual type: Sing 'True
• In the pattern: STrue
In a case alternative: STrue -> True
In the expression:
case s of
STrue -> True
SFalse -> False
• Relevant bindings include
s :: Sing a (bound at prog.hs:25:12)
fromSing :: Sing a -> Bool (bound at prog.hs:25:3)
|
26 | STrue -> True
| ^^^^^