Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
AutoDeriveTypeable :: Extensionghc-lib-parser GHC.LanguageExtensions.Type No documentation available.
NFC_DerivedClassType :: NestedForallsContextsInghc-lib-parser GHC.Tc.Errors.Types Nested forall in deriving class type
NFC_StandaloneDerivedInstanceHead :: NestedForallsContextsInghc-lib-parser GHC.Tc.Errors.Types Nested forall in a standalone deriving instance head
NoDeriveAnyClassEnabled :: DeriveAnyClassEnabledghc-lib-parser GHC.Tc.Errors.Types No documentation available.
-
ghc-lib-parser GHC.Tc.Errors.Types TcRnCannotDeriveInstance is an error that occurs every time a typeclass instance can't be derived. The DeriveInstanceErrReason will contain the specific reason this error arose. Example(s): None. Test cases: genericsT10604T10604_no_PolyKinds derivingshould_faildrvfail009 derivingshould_faildrvfail-functor2 derivingshould_failT10598_fail3 derivingshould_failderiving-via-fail2 derivingshould_failderiving-via-fail derivingshould_failT16181
YesDeriveAnyClassEnabled :: DeriveAnyClassEnabledghc-lib-parser GHC.Tc.Errors.Types No documentation available.
mkDerivedInternalName :: (OccName -> OccName) -> Unique -> Name -> Nameghc-lib-parser GHC.Types.Name No documentation available.
isDerivedOccName :: OccName -> Boolghc-lib-parser GHC.Types.Name.Occurrence Test for definitions internally generated by GHC. This predicate is used to suppress printing of internal definitions in some debug prints
accessorIsLabelDeriver :: Deriverdomain Domain Generates instances of IsLabel for enums, sums and products, providing accessors to their components.
Product Example
Having the following schema:NetworkAddress: product: protocol: TransportProtocol host: Host port: Word16
The following instances will be generated:instance a ~ TransportProtocol => IsLabel "protocol" (NetworkAddress -> a) where fromLabel (NetworkAddress a _ _) = a instance a ~ Host => IsLabel "host" (NetworkAddress -> a) where fromLabel (NetworkAddress _ b _) = b instance a ~ Word16 => IsLabel "port" (NetworkAddress -> a) where fromLabel (NetworkAddress _ _ c) = c
In case you're wondering what this tilde (~) constraint business is about, refer to the Type Equality Constraint section.Sum Example
Having the following schema:Host: sum: ip: Ip name: Text
The following instances will be generated:instance a ~ Maybe Ip => IsLabel "ip" (Host -> a) where fromLabel (IpHost a) = Just a fromLabel _ = Nothing instance a ~ Maybe Text => IsLabel "name" (Host -> a) where fromLabel (NameHost a) = Just a fromLabel _ = Nothing
In case you're wondering what this tilde (~) constraint business is about, refer to the Type Equality Constraint section.Enum Example
Having the following schema:TransportProtocol: enum: - tcp - udp
The following instances will be generated:instance a ~ Bool => IsLabel "tcp" (TransportProtocol -> a) where fromLabel TcpTransportProtocol = True fromLabel _ = False instance a ~ Bool => IsLabel "udp" (TransportProtocol -> a) where fromLabel UdpTransportProtocol = True fromLabel _ = False
In case you're wondering what this tilde (~) constraint business is about, refer to the Type Equality Constraint section.-
domain Domain Derives Bounded for enums. Requires to have the StandaloneDeriving compiler extension enabled.