purescript-bridge-0.13.0.0: Generate PureScript data types from Haskell data types

Safe HaskellSafe
LanguageHaskell2010

Language.PureScript.Bridge.CodeGenSwitches

Description

General switches for the code generation, such as generating profunctor-lenses or not

Synopsis

Documentation

newtype Settings #

General settings for code generation

Constructors

Settings 

Fields

defaultSettings :: Settings #

Settings to generate Lenses

type Switch = Endo Settings #

you can mappend switches to control the code generation

getSettings :: Switch -> Settings #

Translate switches into settings

defaultSwitch :: Switch #

Default switches include code generation for lenses

noLenses :: Switch #

Switch off the generatation of profunctor-lenses

genLenses :: Switch #

Switch on the generatation of profunctor-lenses