GHC Trac Home
GHC Home
Joining In
Working on GHC
Mailing Lists & IRC
GHC Contributors
Documentation
Status Reports
Repositories
Building Guide
Commentary
Debugging
View Tickets
All Bugs
All Tasks
All Feature Req's
All Proposals
My Tickets
Tickets I Created
By Milestone
By OS
By Architecture
Patches for review
Create Ticket
New Bug
New Task
New Feature Req
Wiki
Title Index
Recent Changes
Wiki Notes
Search:
Login
Help/Guide
About Trac
Register
Forgot your password?
Preferences
Wiki
Timeline
Roadmap
View Tickets
Dashboard
Blog
Context Navigation
Back to Ticket #3808
Ticket #3808
: cons.hs
File cons.hs,
220 bytes
(added by paolino,
3 years
ago)
Line
1
import
System.IO
2
import
qualified
Data.ByteString.Lazy
as
BS
3
import
Data.Binary
4
5
decode'
=
decode
::
BS
.
ByteString
->
[
Integer
]
6
main
=
do
7
-- hSetBinaryMode stdin True
8
BS
.
hGetContents stdin
>>=
print
.
length
.
decode'
Download in other formats:
Original Format