Safe Haskell | None |
---|---|
Language | Haskell2010 |
The HList library
(C) 2004, Oleg Kiselyov, Ralf Laemmel, Keean Schupke
Generic type equality predicate: The implementation based on overlapping instances The only place where overlapping instances are really used besides Label5
Documentation
class IsKeyFN t flag | t -> flag Source
All our keywords must be registered
(~) Bool False flag => IsKeyFN t flag | overlapping/fallback case |
IsKeyFN (Label Symbol s -> a -> b) True | labels that impose no restriction on the type of the (single) argument which follows
|
(~) * r (c -> b) => IsKeyFN (K k s c -> r) True | The purpose of this instance is to be able to use the same Symbol
(type-level string) at different types. If they are supposed to be the same,
then use
therefore the following options works:
But you cannot leave off all |