Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
89f6515e
Commit
89f6515e
authored
17 years ago
by
Duncan Coutts
Browse files
Options
Downloads
Patches
Plain Diff
When generating default Setup.hs use defaultMain
not defaultMainWithHooks defaultUserHooks since the latter is deprecated
parent
808a34e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Distribution/Simple/SrcDist.hs
+1
-1
1 addition, 1 deletion
Distribution/Simple/SrcDist.hs
with
1 addition
and
1 deletion
Distribution/Simple/SrcDist.hs
+
1
−
1
View file @
89f6515e
...
@@ -173,7 +173,7 @@ prepareTree pkg_descr verbosity mb_lbi snapshot tmpDir pps date = do
...
@@ -173,7 +173,7 @@ prepareTree pkg_descr verbosity mb_lbi snapshot tmpDir pps date = do
else
if
lhsExists
then
copyFileTo
verbosity
targetDir
"Setup.lhs"
else
if
lhsExists
then
copyFileTo
verbosity
targetDir
"Setup.lhs"
else
writeFile
(
targetDir
</>
"Setup.hs"
)
$
unlines
[
else
writeFile
(
targetDir
</>
"Setup.hs"
)
$
unlines
[
"import Distribution.Simple"
,
"import Distribution.Simple"
,
"main = defaultMain
WithHooks defaultUserHooks
"
]
"main = defaultMain"
]
-- the description file itself
-- the description file itself
descFile
<-
getCurrentDirectory
>>=
findPackageDesc
verbosity
descFile
<-
getCurrentDirectory
>>=
findPackageDesc
verbosity
let
targetDescFile
=
targetDir
</>
descFile
let
targetDescFile
=
targetDir
</>
descFile
...
...
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