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

Move away from build-type Custom #129

Closed
Closed
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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ jobs:

- name: Test
run: |
cabal test package:pretty-simple --enable-tests
cabal build doctest
cabal repl --with-ghc=$(cabal list-bin doctest) --repl-options='-w -Wdefault'

stack:
name: stack / ubuntu-latest
Expand Down
33 changes: 0 additions & 33 deletions Setup.hs

This file was deleted.

3 changes: 3 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ packages:
.
web

extra-packages:
doctest

constraints: miso +jsaddle
19 changes: 1 addition & 18 deletions pretty-simple.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ author: Dennis Gosnell
maintainer: cdep.illabout@gmail.com
copyright: 2017-2019 Dennis Gosnell
category: Text
build-type: Custom
build-type: Simple
extra-source-files: CHANGELOG.md
, README.md
, img/pretty-simple-example-screenshot.png
cabal-version: >=1.10

custom-setup
setup-depends: base
, Cabal >= 1.24
, cabal-doctest >=1.0.2

flag buildexe
description: Build an small command line program that pretty-print anything from stdin.
default: True
Expand Down Expand Up @@ -96,18 +91,6 @@ executable pretty-simple-json-example
else
buildable: False

test-suite pretty-simple-doctest
type: exitcode-stdio-1.0
main-is: DocTest.hs
hs-source-dirs: test
build-depends: base
, doctest >= 0.13
, Glob
, QuickCheck
, template-haskell
default-language: Haskell2010
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N

benchmark pretty-simple-bench
type: exitcode-stdio-1.0
main-is: Bench.hs
Expand Down