template-haskell-natural-1.0.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Natural.Syntax.Datatype.Newtype

Contents

Synopsis

Documentation

newNewtype :: String -> DataBuilder () -> Q NewtypeD Source #

Allows defining a newtype using a DataBuilder.

Will throw at compile-time (and thus interupt compilation) if the newtype

  • has more than one constructor
  • that constructor has more than one field

Re-exports