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 Source #

General settings for code generation

Constructors

Settings 

Fields

defaultSettings :: Settings Source #

Settings to generate Lenses

type Switch = Endo Settings Source #

you can mappend switches to control the code generation

getSettings :: Switch -> Settings Source #

Translate switches into settings

defaultSwitch :: Switch Source #

Default switches include code generation for lenses

noLenses :: Switch Source #

Switch off the generatation of profunctor-lenses

genLenses :: Switch Source #

Switch on the generatation of profunctor-lenses