Skip to content

Commit

Permalink
Use GHC2021 everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
georgefst committed Jun 4, 2023
1 parent b508332 commit 6482d8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
4 changes: 1 addition & 3 deletions evdev-examples/evdev-examples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ executable evdev-replay
ghc-options:
-threaded
-Wall
default-language: Haskell2010
default-language: GHC2021
default-extensions:
BlockArguments
ImportQualifiedPost
LambdaCase
NumericUnderscores
OverloadedRecordDot
OverloadedStrings
ViewPatterns
7 changes: 1 addition & 6 deletions evdev-streamly/evdev-streamly.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,9 @@ library
streamly ^>= 0.8,
streamly-fsnotify ^>= 1.1.1,
unix ^>= 2.7.2,
default-language: Haskell2010
default-language: GHC2021
default-extensions:
DerivingStrategies
FlexibleContexts
GeneralizedNewtypeDeriving
LambdaCase
NumericUnderscores
OverloadedStrings
ScopedTypeVariables
TupleSections
ViewPatterns
11 changes: 2 additions & 9 deletions evdev/evdev.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,14 @@ common common
rawfilepath ^>= 1.0.0,
time ^>= {1.9.3, 1.10, 1.11, 1.12, 1.13},
unix ^>= 2.7.2,
default-language: Haskell2010
default-language: GHC2021
default-extensions:
BlockArguments
DerivingStrategies
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
LambdaCase
NamedFieldPuns
NumericUnderscores
OverloadedStrings
PatternSynonyms
RecordWildCards
ScopedTypeVariables
TupleSections
TypeApplications
TypeFamilies
ViewPatterns
ghc-options:
Expand Down
4 changes: 1 addition & 3 deletions evdev/src/Evdev/Codes.chs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE PatternSynonyms #-}

{-
TODO haddock doesn't quite work correctly with LINE pragmas
https://github.com/haskell/haddock/issues/441
Expand All @@ -11,7 +9,7 @@ seems to be on its way to being fixed with `.hie` files (enable `-fwrite-ide-inf

-- | Datatypes corresponding to the constants in [input-event-codes.h](https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h).
-- See [the Linux Kernel documentation](https://www.kernel.org/doc/html/latest/input/event-codes.html) for full details, noting that all names have been mechanically transformed into CamelCase.
module Evdev.Codes
module Evdev.Codes
( EventType(..)
, SyncEvent(..)
, Key
Expand Down

0 comments on commit 6482d8a

Please sign in to comment.