Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pp test. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Empty file added test/LICENSE
Empty file.
16 changes: 16 additions & 0 deletions test/Test.hs
Original file line number Diff line number Diff line change
@@ -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 ()


19 changes: 19 additions & 0 deletions test/test.cabal
Original file line number Diff line number Diff line change
@@ -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