Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quasar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
quasar
Commits
f77822d6
Commit
f77822d6
authored
2 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused language extensions
Co-authored-by:
Jan Beinke
<
git@janbeinke.com
>
parent
2a8e425b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stm-ltd/src/Control/Concurrent/STM/Class/TH.hs
+4
-3
4 additions, 3 deletions
stm-ltd/src/Control/Concurrent/STM/Class/TH.hs
stm-ltd/stm-ltd.cabal
+3
-24
3 additions, 24 deletions
stm-ltd/stm-ltd.cabal
with
7 additions
and
27 deletions
stm-ltd/src/Control/Concurrent/STM/Class/TH.hs
+
4
−
3
View file @
f77822d6
...
...
@@ -53,9 +53,10 @@ mkLiftImpl liftE fqn = do
ty
<-
reifyType
fqn
let
name
=
mkName
$
nameBase
fqn
argNames
<-
mapM
(
\
_
->
newName
"x"
)
[
1
..
(
argumentCount
ty
)]
let
argPats
=
varP
<$>
argNames
let
bodyE
=
[
|$
liftE
$
(
foldl
appE
(
varE
fqn
)
(
varE
<$>
argNames
))
|
]
let
clauses
=
[
clause
argPats
(
normalB
bodyE
)
[]
]
let
argPats
=
varP
<$>
argNames
bodyE
=
[
|$
liftE
$
(
foldl
appE
(
varE
fqn
)
(
varE
<$>
argNames
))
|
]
clauses
=
[
clause
argPats
(
normalB
bodyE
)
[]
]
#
if
MIN_VERSION_GLASGOW_HASKELL
(
9
,
2
,
0
,
0
)
doc
<-
getDoc
(
DeclDoc
fqn
)
funD_doc
name
clauses
doc
[
Nothing
]
...
...
This diff is collapsed.
Click to expand it.
stm-ltd/stm-ltd.cabal
+
3
−
24
View file @
f77822d6
...
...
@@ -11,42 +11,21 @@ build-type: Simple
common shared-properties
default-extensions:
AllowAmbiguousTypes
BangPatterns
BlockArguments
ConstraintKinds
DataKinds
DefaultSignatures
DeriveGeneric
DerivingStrategies
DisambiguateRecordFields
DuplicateRecordFields
ExistentialQuantification
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
InstanceSigs
LambdaCase
-- Enable once 9.0.1 is required
--LexicalNegation
MultiParamTypeClasses
NamedFieldPuns
MonoLocalBinds
NoImplicitPrelude
NumericUnderscores
OverloadedStrings
PolyKinds
RankNTypes
ScopedTypeVariables
NoStarIsType
StandaloneDeriving
StandaloneKindSignatures
TupleSections
TypeApplications
TypeFamilies
TypeOperators
ViewPatterns
KindSignatures
default-language: Haskell2010
ghc-options:
-Weverything
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment