Module

Neon.Class.HasFromInt

Package
purescript-neon
Repository
tfausak/purescript-neon

#HasFromInt Source

class HasFromInt a  where

Represents types that can be converted from integers. This is typically used for enumerations.

fromInt 1 :: Maybe Bool -- Just true
fromInt 2 :: Maybe Bool -- Nothing

Members

Instances