Skip to content

Commit

Permalink
upgrade to GHC 8.10.4
Browse files Browse the repository at this point in the history
- upgrade to happy 1.20
- placate GHC warning on version fallback
- fix stack sdist failure
  • Loading branch information
zachjs committed Jul 30, 2021
1 parent fd96b8a commit 2a551e1
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 26 deletions.
63 changes: 49 additions & 14 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
================================================================================
Dependency: alex-3.2.5
Dependency: alex-3.2.6
================================================================================

Copyright (c) 1995-2011, Chris Dornan and Simon Marlow
Expand Down Expand Up @@ -123,7 +123,7 @@ Dependency: array-0.5.4.0


================================================================================
Dependency: base-4.13.0.0
Dependency: base-4.14.1.0
================================================================================

This library (libraries/base) is derived from code from several
Expand Down Expand Up @@ -211,7 +211,7 @@ Dependency: base-4.13.0.0
-----------------------------------------------------------------------------

================================================================================
Dependency: binary-0.8.7.0
Dependency: binary-0.8.8.0
================================================================================

Copyright (c) Lennart Kolmodin
Expand Down Expand Up @@ -246,7 +246,7 @@ Dependency: binary-0.8.7.0
POSSIBILITY OF SUCH DAMAGE.

================================================================================
Dependency: bytestring-0.10.10.1
Dependency: bytestring-0.10.12.0
================================================================================

Copyright (c) Don Stewart 2005-2009
Expand Down Expand Up @@ -281,10 +281,10 @@ Dependency: bytestring-0.10.10.1
SUCH DAMAGE.

================================================================================
Dependency: cmdargs-0.10.20
Dependency: cmdargs-0.10.21
================================================================================

Copyright Neil Mitchell 2009-2018.
Copyright Neil Mitchell 2009-2021.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -499,7 +499,7 @@ Dependency: filepath-1.4.2.1
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================
Dependency: ghc-prim-0.5.3
Dependency: ghc-prim-0.6.1
================================================================================

This library (libraries/ghc-prim) is derived from code from several
Expand Down Expand Up @@ -566,7 +566,7 @@ Dependency: ghc-prim-0.5.3


================================================================================
Dependency: githash-0.1.4.0
Dependency: githash-0.1.6.1
================================================================================

Copyright (c) 2018, Michael Snoyman, 2015, Adam C. Foltzer
Expand Down Expand Up @@ -598,7 +598,7 @@ Dependency: githash-0.1.4.0
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================
Dependency: happy-1.19.12
Dependency: happy-1.20.0
================================================================================

The Happy License
Expand Down Expand Up @@ -668,7 +668,7 @@ Dependency: hashable-1.3.0.0
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================
Dependency: integer-gmp-1.0.2.0
Dependency: integer-gmp-1.0.3.0
================================================================================

Copyright (c) 2014, Herbert Valerio Riedel
Expand Down Expand Up @@ -783,7 +783,7 @@ Dependency: pretty-1.1.3.6
-----------------------------------------------------------------------------

================================================================================
Dependency: primitive-0.7.0.1
Dependency: primitive-0.7.1.0
================================================================================

Copyright (c) 2008-2009, Roman Leshchinskiy
Expand Down Expand Up @@ -886,7 +886,7 @@ Dependency: process-1.6.9.0
-----------------------------------------------------------------------------

================================================================================
Dependency: template-haskell-2.15.0.0
Dependency: template-haskell-2.16.0.0
================================================================================


Expand Down Expand Up @@ -924,7 +924,7 @@ Dependency: template-haskell-2.15.0.0


================================================================================
Dependency: text-1.2.4.0
Dependency: text-1.2.4.1
================================================================================

Copyright (c) 2008-2009, Tom Harper
Expand Down Expand Up @@ -954,6 +954,41 @@ Dependency: text-1.2.4.0
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================
Dependency: th-compat-0.1.2
================================================================================

Copyright (c) 2020, Ryan Scott

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of Ryan Scott nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================
Dependency: time-1.9.3
================================================================================
Expand Down Expand Up @@ -1042,7 +1077,7 @@ Dependency: unix-2.7.2.2
DAMAGE.

================================================================================
Dependency: vector-0.12.1.2
Dependency: vector-0.12.3.0
================================================================================

Copyright (c) 2008-2012, Roman Leshchinskiy
Expand Down
6 changes: 2 additions & 4 deletions src/Job.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ data Job = Job
} deriving (Typeable, Data)

version :: String
version =
case $$tGitInfoCwdTry of
Left _ -> showVersion Paths_sv2v.version
Right info -> giDescribe info
version = either (const backup) giDescribe $$tGitInfoCwdTry
where backup = showVersion Paths_sv2v.version

defaultJob :: Job
defaultJob = Job
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-16.14
resolver: lts-18.4
pvp-bounds: both
ghc-options:
$locals: -j
Expand Down
12 changes: 6 additions & 6 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages: []
snapshots:
- completed:
size: 532382
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/14.yaml
sha256: 1ef27e36f38824abafc43224ca612211b3828fa9ffd31ba0fc2867ae2e19ba90
original: lts-16.14
- original: lts-18.4
completed:
sha256: ea3a318eafa9e9cc56bfbe46099fd0d54d32641ab7bbe1d182ed8f5de39f804c
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/4.yaml
size: 585817
packages: []
4 changes: 3 additions & 1 deletion sv2v.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ executable sv2v
hs-source-dirs: src
build-tool-depends:
, alex:alex >= 3.2.5 && < 4
, happy:happy >= 1.19 && < 2
, happy:happy >= 1.20 && < 2
build-depends:
, array
, base
Expand Down Expand Up @@ -106,6 +106,8 @@ executable sv2v
-- sv2v CLI modules
Job
Paths_sv2v
autogen-modules:
Paths_sv2v
ghc-options:
-O3
-threaded
Expand Down

0 comments on commit 2a551e1

Please sign in to comment.