You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ghc 9.0.2 provides the following undocumented warning -
example.hs:11:11: warning: [-Winaccessible-code]
• Couldn't match type ‘(a, b)’ with ‘()’
Inaccessible code in
a pattern with constructor: HNil :: HList (),
in an equation for ‘hListHead’
• In the pattern: HNil
In an equation for ‘hListHead’: hListHead HNil = undefined
• Relevant bindings include
hListHead :: HList (a, b) -> a (bound at example.hs:11:1)
|
11 | hListHead HNil = undefined
| ^^^^
The text was updated successfully, but these errors were encountered:
For this example code -
ghc 9.0.2
provides the following undocumented warning -The text was updated successfully, but these errors were encountered: