Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dylan Yudaken
GHC
Commits
0fbb62e9
Commit
0fbb62e9
authored
Jul 03, 2011
by
daniel.is.fischer
Committed by
Simon Marlow
Jul 07, 2011
Browse files
Pass defaultLogAction to defaultErrorHandler in annrun01
parent
5faed3b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/annotations/should_run/annrun01.hs
View file @
0fbb62e9
...
...
@@ -4,7 +4,7 @@ module Main where
import
GHC
import
MonadUtils
(
liftIO
)
import
DynFlags
(
default
DynFlags
)
import
DynFlags
(
default
LogAction
)
import
Annotations
(
AnnTarget
(
..
),
CoreAnnTarget
)
import
Serialized
(
deserializeWithData
)
import
Panic
...
...
@@ -16,7 +16,7 @@ import qualified Language.Haskell.TH as TH
import
Data.List
import
Data.Function
main
=
defaultErrorHandler
(
default
DynFlags
(
panic
"No settings"
))
main
=
defaultErrorHandler
default
LogAction
$
runGhc
(
Just
cTop
)
$
do
liftIO
$
putStrLn
"Initializing Package Database"
dflags
<-
getSessionDynFlags
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment