Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
havm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiger
havm
Commits
6ee7ad91
Commit
6ee7ad91
authored
May 14, 2012
by
Roland Levillain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use no encoding for the standard output.
* src/Main.hs (main): Here.
parent
c247ff1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
ChangeLog
ChangeLog
+6
-0
src/Main.hs
src/Main.hs
+3
-1
No files found.
ChangeLog
View file @
6ee7ad91
2012-05-14 Roland Levillain <roland@lrde.epita.fr>
Use no encoding for the standard output.
* src/Main.hs (main): Here.
2012-03-07 Roland Levillain <roland@lrde.epita.fr>
Improve the build system.
...
...
src/Main.hs
View file @
6ee7ad91
...
...
@@ -3,7 +3,8 @@ where
import
System.IO
(
Handle
,
IOMode
(
ReadMode
),
BufferMode
(
LineBuffering
),
stderr
,
stdout
,
openFile
,
hGetContents
,
hClose
,
hPutStr
,
hPutStrLn
,
hSetBuffering
)
hGetContents
,
hClose
,
hPutStr
,
hPutStrLn
,
hSetBuffering
,
hSetBinaryMode
)
import
System.Environment
(
getArgs
)
import
System.Exit
(
ExitCode
(
ExitSuccess
,
ExitFailure
))
import
System.Posix
(
exitImmediately
)
...
...
@@ -139,6 +140,7 @@ main =
case
input
of
(
Just
input
)
->
do
hSetBuffering
stderr
LineBuffering
hSetBuffering
stdout
LineBuffering
hSetBinaryMode
stdout
True
handle
<-
openFile
input
ReadMode
text
<-
hGetContents
handle
toks
<-
scanM
text
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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