diff --git a/default.nix b/default.nix index 35f24f4..3ddaf4a 100644 --- a/default.nix +++ b/default.nix @@ -35,4 +35,5 @@ let callARM = ghcARM.callCabal2nix; preprocessor = with pkgs.haskell.lib; justStaticExecutables (call "lens-th-rewrite" ./. {}); in - preprocessor + with pkgs.haskell.lib; + addBuildTool (callARM "test" ./test {}) preprocessor diff --git a/test/LICENSE b/test/LICENSE new file mode 100644 index 0000000..e69de29 diff --git a/test/Test.hs b/test/Test.hs new file mode 100644 index 0000000..7dbc0b9 --- /dev/null +++ b/test/Test.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE TemplateHaskell #-} +{-# OPTIONS_GHC -F -pgmF=lens-th-rewrite-pp #-} +module Main where + +import Control.Lens + +data Person + = Person + { _name :: String + } deriving (Show) + +$(makeLenses ''Person) + +main = pure () + + diff --git a/test/test.cabal b/test/test.cabal new file mode 100644 index 0000000..5151953 --- /dev/null +++ b/test/test.cabal @@ -0,0 +1,19 @@ +cabal-version: >=1.10 +name: test +version: 0.1.0.0 +license: BSD3 +license-file: LICENSE +author: David Johnson +maintainer: djohnson.m@gmail.com +copyright: David Johnson (c) 2020 +category: Data +build-type: Simple +extra-source-files: CHANGELOG.md + +executable main + main-is: + Test.hs + build-depends: + base < 5, lens + default-language: + Haskell2010