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

Fixing warnings #240

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a6ba848
gitignore compatible with the new-style cabal builds.
LinuxUser404 Aug 6, 2019
5d3d599
fixing dodgy-import: Module ‘Prelude’ does not export ‘catch’
LinuxUser404 Aug 6, 2019
8f62f8f
support for v2-config
LinuxUser404 Aug 6, 2019
d19e042
bump cabal version requirement for v2-features.
LinuxUser404 Aug 6, 2019
7f265e2
fixing missing home modules
LinuxUser404 Aug 6, 2019
9822025
added warnings
LinuxUser404 Aug 6, 2019
6de1193
gitignore tests/bugs and tests/system
LinuxUser404 Aug 6, 2019
c0e5957
fixing unused import Data.Monoid
LinuxUser404 Aug 6, 2019
dfe5fdc
fixing unused local-binds `buildTools`
LinuxUser404 Aug 6, 2019
8b87240
contains warnings
LinuxUser404 Aug 6, 2019
b1584a2
fixed unused imports and missing home modules
LinuxUser404 Aug 6, 2019
5a3ceed
fixing unused top binds
LinuxUser404 Aug 6, 2019
7aa139d
fixing unused do binds
LinuxUser404 Aug 6, 2019
e01d18b
fixing name shadowing
LinuxUser404 Aug 6, 2019
3c4a951
nicer formating
LinuxUser404 Aug 6, 2019
fbba422
reverted back to cabal 1.10
LinuxUser404 Aug 6, 2019
de80dc5
using fno-warn
LinuxUser404 Aug 6, 2019
d0ef28d
Added rergession test suite files to gitignore.
LinuxUser404 Aug 6, 2019
f91bc4b
reverted warnings to -fno-warn style
LinuxUser404 Aug 6, 2019
6a54eb4
bumped cabal-2.4 and use a simpler travis file with build matrix simi…
LinuxUser404 Aug 6, 2019
9ab2251
removed language: haskell from travis.
LinuxUser404 Aug 6, 2019
a8ed07b
removed tested with
LinuxUser404 Aug 6, 2019
1d04727
Reverted back the travis and cabal files. Removed old ghc versions an…
LinuxUser404 Aug 6, 2019
7ff214b
Added back the todo message and fwarn-tabs.
LinuxUser404 Aug 6, 2019
e7a89ec
Added operator (<>) for ghc's before base-4.9.0
LinuxUser404 Aug 6, 2019
547c59a
Revert unnecessary changes.
LinuxUser404 Aug 7, 2019
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
180 changes: 19 additions & 161 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,170 +1,28 @@
.ghc.environment.*
/.cabal-sandbox/*
/cabal.sandbox.config
cabal.project.local
cabal.project.local~
*.chi
*.chs.h
/dist-newstyle
/dist/*
*.hi
/issues/*
*.o
/.shelly/*.txt
/tests/bugs/call_capital/Capital
/tests/bugs/call_capital/Capital.chi
/tests/bugs/call_capital/Capital.chs.h
/tests/bugs/call_capital/Capital_c.o
/tests/bugs/call_capital/Capital.hi
/tests/bugs/call_capital/Capital.hs
/tests/bugs/call_capital/Capital.o
/tests/bugs/issue-09/Issue09.hs
/tests/bugs/issue-102/Issue102
/tests/bugs/issue-102/Issue102.hs
/tests/bugs/issue-103/Issue103A.hs
/tests/bugs/issue-103/Issue103.hs
/tests/bugs/issue-107/Issue107
/tests/bugs/issue-107/Issue107.hs
/tests/bugs/issue-10/Issue10
/tests/bugs/issue-10/Issue10.hs
/tests/bugs/issue-10/Issue10.i
/tests/bugs/issue-113/Issue113
/tests/bugs/issue-113/Issue113.hs
/tests/bugs/issue-115/Issue115
/tests/bugs/issue-115/Issue115.hs
/tests/bugs/issue-116/Issue116
/tests/bugs/issue-116/Issue116.hs
/tests/bugs/issue-15/Issue15
/tests/bugs/issue-15/Issue15.hs
/tests/bugs/issue-16/Issue16
/tests/bugs/issue-16/Issue16.hs
/tests/bugs/issue-19/Issue19
/tests/bugs/issue-19/Issue19.hs
/tests/bugs/issue-20/Issue20.i
/tests/bugs/issue-22/Issue22
/tests/bugs/issue-22/Issue22.hs
/tests/bugs/issue-23/Issue23
/tests/bugs/issue-23/Issue23.hs
/tests/bugs/issue-29/Issue29.hs
/tests/bugs/issue-29/Issue29.i
/tests/bugs/issue-30/Issue30
/tests/bugs/issue-30/Issue30Aux1.hs
/tests/bugs/issue-30/Issue30Aux2.hs
/tests/bugs/issue-30/Issue30.hs
/tests/bugs/issue-31/Issue31
/tests/bugs/issue-31/Issue31.hs
/tests/bugs/issue-32/Issue32
/tests/bugs/issue-32/Issue32.hs
/tests/bugs/issue-36/Issue36
/tests/bugs/issue-36/Issue36.hs
/tests/bugs/issue-37/Issue37
/tests/bugs/issue-37/Issue37.hs
/tests/bugs/issue-38/Issue38
/tests/bugs/issue-38/Issue38.hs
/tests/bugs/issue-43/Issue43
/tests/bugs/issue-43/Issue43.hs
/tests/bugs/issue-44/Issue44
/tests/bugs/issue-44/Issue44.hs
/tests/bugs/issue-45/Issue45
/tests/bugs/issue-45/Issue45.hs
/tests/bugs/issue-46/Issue46
/tests/bugs/issue-46/Issue46.hs
/tests/bugs/issue-47/Issue47
/tests/bugs/issue-47/Issue47.hs
/tests/bugs/issue-51/Issue51
/tests/bugs/issue-51/Issue51_GNU
/tests/bugs/issue-51/Issue51_GNU.hs
/tests/bugs/issue-51/Issue51.hs
/tests/bugs/issue-51/Issue51_nonGNU
/tests/bugs/issue-51/Issue51_nonGNU.hs
/tests/bugs/issue-54/Issue54
/tests/bugs/issue-54/Issue54.hs
/tests/bugs/issue-60/Issue60
/tests/bugs/issue-60/Issue60.hs
/tests/bugs/issue-60/Issue60.i
/tests/bugs/issue-62/Issue62
/tests/bugs/issue-62/Issue62.hs
/tests/bugs/issue-65/Issue65
/tests/bugs/issue-65/Issue65.hs
/tests/bugs/issue-69/Issue69
/tests/bugs/issue-69/Issue69.hs
/tests/bugs/issue-70/Issue70.hs
/tests/bugs/issue-73/Issue73
/tests/bugs/issue-73/Issue73.hs
/tests/bugs/issue-75/Issue75
/tests/bugs/issue-75/Issue75.hs
/tests/bugs/issue-79/Issue79
/tests/bugs/issue-79/Issue79.hs
/tests/bugs/issue-7/Issue7.hs
/tests/bugs/issue-7/Issue7.i
/tests/bugs/issue-80/Issue80
/tests/bugs/issue-80/Issue80.hs
/tests/bugs/issue-82/Issue82
/tests/bugs/issue-82/Issue82.hs
/tests/bugs/issue-83/Issue83
/tests/bugs/issue-83/Issue83.hs
/tests/bugs/issue-93/Issue93
/tests/bugs/issue-93/Issue93.hs
/tests/bugs/issue-95/Issue95
/tests/bugs/issue-95/Issue95.hs
/tests/bugs/issue-96/Issue103
/tests/bugs/issue-96/Issue96
/tests/bugs/issue-96/Issue96.hs
/tests/bugs/issue-97/Issue97
/tests/bugs/issue-97/Issue97A.hs
/tests/bugs/issue-97/Issue97.hs
/tests/bugs/issue-98/Issue98
/tests/bugs/issue-98/Issue98.hs
/tests/bugs/issue-9/Issue9
/tests/bugs/issue-9/Issue9.hs
/tests/system/calls/Calls.hs
/tests/system/cpp/Cpp.hs
/tests/system/enums/enums
/tests/system/enums/Enums.hs
/tests/system/marsh/marsh
/tests/system/marsh/Marsh.hs
/tests/system/pointer/pointer
/tests/system/pointer/Pointer.hs
/tests/system/simple/simple
/tests/system/simple/Simple.hs
/tests/system/sizeof/sizeof
/tests/system/sizeof/Sizeof.hs
/tests/system/structs/structs
/tests/system/structs/Structs.hs
/tests/bugs/issue-20/Issue20
/tests/bugs/issue-20/Issue20.hs
/tests/bugs/issue-25/Issue25
/tests/bugs/issue-25/Issue25.hs
/tests/bugs/issue-48/Issue48
/tests/bugs/issue-48/Issue48.hs
/tests/bugs/issue-123/Issue123
/tests/bugs/issue-123/Issue123.hs
/tests/bugs/issue-102/issue-102.txt
/tests/bugs/issue-117/Issue117
/tests/bugs/issue-117/Issue117.hs
/tests/bugs/issue-117/Issue117.chs.c
/tests/bugs/issue-127/Issue127
/tests/bugs/issue-127/Issue127.hs
/tests/bugs/issue-128/Issue128
/tests/bugs/issue-128/Issue128.chs.c
/tests/bugs/issue-128/Issue128.hs
/tests/bugs/issue-131/Issue131.chs.c
/tests/bugs/issue-131/Issue131.hs
/tests/bugs/issue-131/Issue131
/tests/bugs/issue-130/Issue130
/tests/bugs/issue-130/Issue130.hs
/tests/bugs/issue-133/Issue133
/tests/bugs/issue-133/Issue133.hs
/tests/bugs/issue-136/Issue136.hs
/tests/bugs/issue-136/Issue136
/tests/bugs/issue-134/Issue134
/tests/bugs/issue-134/Issue134.hs
/tests/bugs/issue-151/Issue151.hs
/tests/bugs/issue-149/Issue149
/tests/bugs/issue-149/Issue149.hs
/tests/bugs/issue-141/Issue141A.hs
/tests/bugs/issue-141/Issue141B.hs
/tests/bugs/issue-152/Issue152
/tests/bugs/issue-140/Issue140
/tests/bugs/issue-140/Issue140.hs
/tests/bugs/issue-152/Issue152.hs
/tests/bugs/issue-155/Issue155
/tests/bugs/issue-155/Issue155.hs
/tests/bugs/issue-152/Issue152.hs
/tests/bugs/issue-155/Types.hs
/tests/bugs
/tests/system
abcBridge*
alsa-mixer*
cuda*
cufft*
gnome-keyring*
gnuidn*
haskell-mpi*
hnetcdf*
hpuz*
hsndfile*
hsshellscript*
igraph*
libssh2*
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ install:

script:
- cabal install && cabal configure --enable-tests -fregression && cabal build && cabal test
- ./dist/build/regression-suite/regression-suite
- cabal run regression-suite
3 changes: 3 additions & 0 deletions c2hs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ Test-Suite test-bugs
shelly >= 1.0,
text,
transformers
ghc-options: -Wall -fno-warn-incomplete-patterns -fwarn-tabs
default-language: Haskell2010

Test-Suite test-system
Expand All @@ -189,6 +190,7 @@ Test-Suite test-system
shelly >= 1.0,
text,
transformers
ghc-options: -Wall -fno-warn-incomplete-patterns -fwarn-tabs
default-language: Haskell2010

Flag regression
Expand All @@ -206,4 +208,5 @@ Executable regression-suite
yaml >= 0.8
else
buildable: False
ghc-options: -Wall -fno-warn-deprecations -fwarn-tabs
default-language: Haskell2010
1 change: 0 additions & 1 deletion src/Control/StateTrans.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ where
import Control.Applicative (Applicative(..))
import Control.Monad (liftM, ap)
import Control.Exception (catch)
import Prelude hiding (catch)

-- BEWARE! You enter monad country. Read any of Wadler's or
-- Launchbury/Peyton-Jones' texts before entering. Otherwise,
Expand Down
7 changes: 5 additions & 2 deletions tests/regression-suite.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExtendedDefaultRules #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
Expand All @@ -9,7 +10,9 @@ import Shelly hiding (FilePath)
import Data.Char
import Data.List (nub)
import Data.Text (Text)
import Data.Monoid
#if __GLASGOW_HASKELL__ < 800
import Data.Monoid ((<>))
#endif
import qualified Data.Text as T
import Data.Yaml
default (T.Text)
Expand Down Expand Up @@ -93,7 +96,7 @@ main = shelly $ do
readTests "tests/regression-suite.yaml"
let ppas = nub $ concatMap aptPPA tests
pkgs = nub $ concatMap aptPackages tests
buildTools = nub $ concatMap cabalBuildTools tests
_ {- buildTools-} = nub $ concatMap cabalBuildTools tests
specials = concatMap specialSetup tests
extraPaths = concatMap extraPath tests
extraSOPaths = concatMap extraSOPath tests
Expand Down
Loading