Skip to content

Instantly share code, notes, and snippets.

@evanrelf
Created April 4, 2020 01:16
Show Gist options
  • Save evanrelf/7a2e52ed6ae8d571beb4c3f23ee5275b to your computer and use it in GitHub Desktop.
Save evanrelf/7a2e52ed6ae8d571beb4c3f23ee5275b to your computer and use it in GitHub Desktop.
How to try `RecordDotSyntax` with Neil Mitchell's preprocessor/plugin https://github.com/ndmitchell/record-dot-preprocessor
common record-dot-syntax-preprocessor
build-depends: record-dot-preprocessor, record-hasfield
ghc-options: -F -pgmF=record-dot-preprocessor
common record-dot-syntax-plugin
build-depends: record-dot-preprocessor, record-hasfield
default-extensions:
DataKinds
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
MultiParamTypeClasses
TypeApplications
TypeSynonymInstances
ghc-options: -fplugin=RecordDotPreprocessor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment