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
: prod.hs
File prod.hs,
215 bytes
(added by paolino,
3 years
ago)
Line
1
import
qualified
Data.ByteString.Lazy
as
BS
2
import
System.IO
3
import
Data.Binary
4
5
6
7
fibs
=
0
:
1
:
zipWith
(
+
)
fibs
(
tail fibs
)
::
[
Integer
]
8
main
=
do
BS
.
hPutStr stdout
.
encode
$
take
5000
fibs
-- [(0::Integer)..]
Download in other formats:
Original Format