Module

Data.HObject.Primitive.Helpers

Package
purescript-homogeneous-objects
Repository
Risto-Stevcev/purescript-homogeneous-objects

#BoolOrInt Source

data BoolOrInt

These are helper data types and instances so that you don't have to write out Primitive instances for your
sum datatype consisting of primitive nullary types. These data types are alphabetically ordered by type. For example, a sum type of Int, Boolean and String would be BoolOrIntOrStr. Constructors are alphabetically ordered by the initials of the primitive types, and with the last letter as the type that it's constructing (ex. NSI consutrcts an Int type of IntOrNumOrStr)

Constructors

Instances