Copyright | (c) Sirui Lu 2024 |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | siruilu@cs.washington.edu |
Stability | Experimental |
Portability | GHC only |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- deriveGADTToCon :: DeriveConfig -> Name -> Q [Dec]
- deriveGADTToCon1 :: DeriveConfig -> Name -> Q [Dec]
- deriveGADTToCon2 :: DeriveConfig -> Name -> Q [Dec]
Documentation
deriveGADTToCon :: DeriveConfig -> Name -> Q [Dec] Source #
Derive ToCon
instance for a GADT.
deriveGADTToCon1 :: DeriveConfig -> Name -> Q [Dec] Source #
Derive ToCon1
instance for a GADT.
deriveGADTToCon2 :: DeriveConfig -> Name -> Q [Dec] Source #
Derive ToCon2
instance for a GADT.