Skip to content

Commit

Permalink
Document required dependencies and extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
edsko committed Oct 15, 2024
1 parent fb24492 commit 2a257b5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion large-records/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

## 0.4.2 -- 2024-10-15

* Support `primitive-0.7.3` (#159, Isaac Elliott)
* Support `primitive-0.7.3` (#159, Isaac Elliott).
* Plugin idempotence (#159, Isaac Elliott).
* Document required additional dependencies and language extensions (#161).

Note: if your code imports `Data.Plugin.Record` only for the `largeRecord`
identifier used in the `ANN` annotations, this import is no longer required
Expand Down
28 changes: 28 additions & 0 deletions large-records/src/Data/Record/Plugin.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@
--
-- See 'LargeRecordOptions' for the list of all possible annotations.
--
-- = Dependencies
--
-- In addition to the dependency on @large-records@, you will also need to add
-- dependencies
-- on [large-generics](http://hackage.haskell.org/package/large-generics)
-- and [record-hasfield](http://hackage.haskell.org/package/record-hasfield).
--
-- = Language extensions
--
-- The plugin depends on a number of language extensions. If you are using
-- GHC2021, you will need enable:
--
-- > {-# LANGUAGE DataKinds #-}
-- > {-# LANGUAGE TypeFamilies #-}
-- > {-# LANGUAGE UndecidableInstances #-}
--
-- If you are using Haskell2010, you need to enable:
--
-- > {-# LANGUAGE ConstraintKinds #-}
-- > {-# LANGUAGE DataKinds #-}
-- > {-# LANGUAGE FlexibleInstances #-}
-- > {-# LANGUAGE GADTs #-}
-- > {-# LANGUAGE MultiParamTypeClasses #-}
-- > {-# LANGUAGE ScopedTypeVariables #-}
-- > {-# LANGUAGE TypeFamilies #-}
-- > {-# LANGUAGE TypeOperators #-}
-- > {-# LANGUAGE UndecidableInstances #-}
--
-- = Usage with @record-dot-preprocessor@
--
-- The easiest way to use both plugins together is to do
Expand Down

0 comments on commit 2a257b5

Please sign in to comment.