Skip to content

Commit

Permalink
Rename modules
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Feb 10, 2019
1 parent 1fac892 commit e9adab1
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 69 deletions.
2 changes: 0 additions & 2 deletions Main.hs

This file was deleted.

2 changes: 2 additions & 0 deletions cli/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module Main (main) where
import HaskellCI (main)
127 changes: 66 additions & 61 deletions haskell-ci.cabal
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
cabal-version: 2.2
name: haskell-ci
version: 0.1.0.0

synopsis: Cabal package script generator for Travis-CI
cabal-version: 2.2
name: haskell-ci
version: 0.1.0.0
synopsis: Cabal package script generator for Travis-CI
description:
Script generator (@make-travis-yml@) for [Travis-CI](https://travis-ci.org/) for continuous-integration testing of Haskell Cabal packages.
.
Expand All @@ -22,20 +21,15 @@ description:
.
See @make-travis-yml --help@ for more information.


homepage: http://haskell-ci.rtfd.org/
bug-reports: https://github.com/haskell-CI/haskell-ci/issues
license: BSD-3-Clause
license-file: LICENSE
author: Herbert Valerio Riedel, Oleg Grenrus
maintainer: [email protected]
category: Development
build-type: Simple
tested-with:
GHC == 8.0.2,
GHC == 8.2.2,
GHC == 8.4.4,
GHC == 8.6.3
homepage: http://haskell-ci.rtfd.org/
bug-reports: https://github.com/haskell-CI/haskell-ci/issues
license: BSD-3-Clause
license-file: LICENSE
author: Herbert Valerio Riedel, Oleg Grenrus
maintainer: [email protected]
category: Development
build-type: Simple
tested-with: GHC ==8.6.3 || ==8.4.4 || ==8.2.2 || ==8.0.2
extra-source-files:
fixtures/cabal.haskell-ci
fixtures/haskell-ci.cabal
Expand All @@ -58,65 +52,76 @@ extra-source-files:
fixtures/servant/*.cabal

source-repository head
type: git
type: git
location: https://github.com/haskell-CI/haskell-ci.git

flag ShellCheck
default: True
manual: True
manual: True

library
exposed-modules:
MakeTravisYml
Config
Glob
HaskellCI
HaskellCI.Config
HaskellCI.Glob

ghc-options:
-Wall
-Wcompat
-Wnoncanonical-monad-instances
-Wall -Wcompat -Wnoncanonical-monad-instances
-Wnoncanonical-monadfail-instances
hs-source-dirs: src
other-extensions: CPP, ViewPatterns, NamedFieldPuns, OverloadedLabels

hs-source-dirs: src
other-extensions:
CPP
NamedFieldPuns
OverloadedLabels
ViewPatterns

build-depends:
, base >= 4.7 && < 4.13
, Cabal ^>= 2.4
, containers >= 0.4 && < 0.7
, directory >= 1.1 && < 1.4
, filepath >= 1.2 && < 1.5
, transformers >= 0.3 && < 0.6
, deepseq >= 1.3 && < 1.5
, base >=4.7 && <4.13
, Cabal ^>=2.4
, containers >=0.4 && <0.7
, deepseq >=1.3 && <1.5
, directory >=1.1 && <1.4
, filepath >=1.2 && <1.5
, transformers >=0.3 && <0.6

-- other dependencies
build-depends:
, generic-lens ^>=1.1.0.0
, microlens ^>=0.4.10
default-language: Haskell2010
, generic-lens ^>=1.1.0.0
, microlens ^>=0.4.10

default-language: Haskell2010

-- ShellCheck. Would need newer transformers for older GHC
if flag(ShellCheck) && impl(ghc >= 7.10 && <8.7)
build-depends: ShellCheck == 0.6.0
if (flag(shellcheck) && impl(ghc >=7.10 && <8.7))
build-depends: ShellCheck ==0.6.0

executable haskell-ci
main-is: Main.hs
ghc-options: -Wall
build-depends: base, haskell-ci
default-language: Haskell2010
main-is: Main.hs
ghc-options: -Wall
hs-source-dirs: cli
build-depends:
, base
, haskell-ci

default-language: Haskell2010

test-suite golden
type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: test
build-depends: haskell-ci
-- inherited constraints via lib:haskell-ci
, base
, bytestring
, directory
, filepath
, transformers
-- dependencies needing explicit constraints
, tasty >= 1.0 && < 1.2
, tasty-golden >= 2.3.1.1 && < 2.4
, ansi-terminal >= 0.8.0.2 && <0.9
, Diff >= 0.3.4 && < 0.4
type: exitcode-stdio-1.0
main-is: Tests.hs
hs-source-dirs: test
build-depends:
, ansi-terminal ^>=0.8.0.2
, base
, bytestring
, Diff ^>=0.3.4
, directory
, filepath
, haskell-ci
, tasty >=1.0 && <1.2
, tasty-golden ^>=2.3.1.1
, transformers

default-language: Haskell2010
-- inherited constraints via lib:haskell-ci
-- dependencies needing explicit constraints
default-language: Haskell2010
6 changes: 3 additions & 3 deletions src/MakeTravisYml.hs → src/HaskellCI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
--
-- NB: This code deliberately avoids relying on non-standard packages and
-- is expected to compile/work with at least GHC 7.0 through GHC 8.0
module MakeTravisYml (
module HaskellCI (
main,
-- * for tests
Result (..),
Expand Down Expand Up @@ -97,8 +97,8 @@ import Data.Monoid ((<>))
import Lens.Micro
import Data.Generics.Labels () -- IsLabel (->) ...

import Config
import Glob
import HaskellCI.Config
import HaskellCI.Glob

#if !(MIN_VERSION_Cabal(2,0,0))
-- compat helpers for pre-2.0
Expand Down
2 changes: 1 addition & 1 deletion src/Config.hs → src/HaskellCI/Config.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE DeriveGeneric #-}
module Config where
module HaskellCI.Config where

import Distribution.Version
import GHC.Generics (Generic)
Expand Down
2 changes: 1 addition & 1 deletion src/Glob.hs → src/HaskellCI/Glob.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Glob where
module HaskellCI.Glob where

import Control.Applicative as App ((<$>))
import Control.Monad (void, filterM, liftM2)
Expand Down
2 changes: 1 addition & 1 deletion test/Tests.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE ViewPatterns #-}
module Main (main) where

import MakeTravisYml hiding (main)
import HaskellCI hiding (main)

import Control.Applicative ((<$>), (<*>))
import Control.Exception (ErrorCall(..), throwIO, try)
Expand Down

0 comments on commit e9adab1

Please sign in to comment.