Skip to content

Commit

Permalink
Remove old GHC-8.4 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
leonschoorl authored and DigitalBrains1 committed Jun 20, 2023
1 parent e2daa0a commit f35ba85
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 42 deletions.
5 changes: 1 addition & 4 deletions clash-cores/clash-cores.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,13 @@ common basic-config
MagicHash
NoImplicitPrelude
PostfixOperators
NoStarIsType
ScopedTypeVariables
TemplateHaskell
TypeApplications
TypeFamilies
TypeOperators

if impl(ghc >= 8.6)
default-extensions:
NoStarIsType

ghc-options:
-Wall -Wcompat

Expand Down
7 changes: 1 addition & 6 deletions clash-dev
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/bin/sh
GHC_VERSION=$(ghc --numeric-version)
GHC_MAJOR_VERSION=$(echo ${GHC_VERSION} | tr -d '.' | head -c2)

if [ ${GHC_MAJOR_VERSION} != 84 ]; then
XNoStarIsType="-XNoStarIsType"
fi

ghci \
-fobject-code \
Expand All @@ -15,7 +10,7 @@ ghci \
-XBangPatterns -XBinaryLiterals -XDataKinds -XDefaultSignatures \
-XDeriveDataTypeable -XDeriveFoldable -XDeriveFunctor -XDeriveGeneric \
-XDeriveLift -XDeriveTraversable -XDerivingStrategies -XInstanceSigs \
-XKindSignatures ${XNoStarIsType} -XPostfixOperators -XScopedTypeVariables \
-XKindSignatures -XNoStarIsType -XPostfixOperators -XScopedTypeVariables \
-XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeOperators \
-XViewPatterns -XNoPolyKinds -DDEBUG \
Clash.hs
7 changes: 1 addition & 6 deletions clash-dev.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
$GHC_VERSION=(ghc --numeric-version)
$GHC_MAJOR_VERSION=Write-Output $GHC_VERSION | wsl tr -d '.' | wsl head -c2

if ($GHC_MAJOR_VERSION -ne 84) {
$XNoStarIsType="-XNoStarIsType"
}

ghci `
-fobject-code `
Expand All @@ -14,7 +9,7 @@ ghci `
-XBangPatterns -XBinaryLiterals -XDataKinds -XDefaultSignatures `
-XDeriveDataTypeable -XDeriveFoldable -XDeriveFunctor -XDeriveGeneric `
-XDeriveLift -XDeriveTraversable -XDerivingStrategies -XInstanceSigs `
-XKindSignatures -XPostfixOperators $XNoStarIsType -XScopedTypeVariables `
-XKindSignatures -XPostfixOperators -XNoStarIsType -XScopedTypeVariables `
-XStandaloneDeriving -XTupleSections -XTypeApplications -XTypeOperators `
-XViewPatterns -XNoPolyKinds -DDEBUG `
Clash.hs
13 changes: 0 additions & 13 deletions clash-ghc/cbits/PosixSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,4 @@
#define _XOPEN_SOURCE 700
#endif

#if defined(mingw32_HOST_OS)
/* Without this gcc will warn about %ull and the like since some msvcrt versions
do not support them. See
https://sourceforge.net/p/mingw-w64/mailman/message/28557333/
Note that this is implied by _POSIX_C_SOURCE in the msys2 toolchain that we
now use. However, we retain this explicit #define to preserve the ability to
bootstrap GHC with compilers still using msys (e.g. GHC 7.10.1 and 7.10.2).
This can be removed in for GHC 8.4. See #12951.
*/
#define __USE_MINGW_ANSI_STDIO 1
#endif

#endif /* POSIXSOURCE_H */
3 changes: 0 additions & 3 deletions clash-ghc/clash-ghc.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ common common-options
TypeOperators
ViewPatterns

if impl(ghc >= 8.6)
default-extensions: NoStarIsType

library
import: common-options
HS-Source-Dirs: src-ghc, src-bin-common
Expand Down
5 changes: 1 addition & 4 deletions clash-lib-hedgehog/clash-lib-hedgehog.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ common basic-config
TypeApplications
TypeFamilies
TypeOperators

if impl(ghc >= 8.6)
default-extensions:
NoStarIsType
NoStarIsType

ghc-options:
-Wall -Wcompat
Expand Down
5 changes: 1 addition & 4 deletions clash-prelude-hedgehog/clash-prelude-hedgehog.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ common basic-config
TypeApplications
TypeFamilies
TypeOperators

if impl(ghc >= 8.6)
default-extensions:
NoStarIsType
NoStarIsType

ghc-options:
-Wall -Wcompat
Expand Down
2 changes: 0 additions & 2 deletions hie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ cradle:
# The src-bin directories are GHC version dependant, so don't load them
- path: "./clash-ghc/src-bin-8.10"
config: { cradle: {none: }}
- path: "./clash-ghc/src-bin-841"
config: { cradle: {none: }}
- path: "./clash-ghc/src-bin-861"
config: { cradle: {none: }}
- path: "./clash-ghc/src-bin-881"
Expand Down

0 comments on commit f35ba85

Please sign in to comment.