Module
Data.Options
- Package
- purescript-options
- Repository
- ethul/purescript-options
#Options Source
newtype Options optThe Options type represents a set of options. The type argument is a
phantom type, which is useful for ensuring that options for one particular
API are not accidentally passed to some other API.
Constructors
Instances
#(:=) Source
Operator alias for Data.Options.assoc (right-associative / precedence 6)
An infix version of assoc.
#defaultToOptions Source
defaultToOptions :: forall value opt. String -> value -> Options optThe default method for turning a string property key into an
Option. This function simply calls toForeign on the value. If
you need some other behaviour, you can write your own function to replace
this one, and construct an Option yourself.
- Modules
- Data.
Options