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 #2814
Ticket #2814
: test2.hs
File test2.hs,
205 bytes
(added by celes,
4 years
ago)
small version
Line
1
data
V
=
Fun
(
V
->
V
)
2
|
Str
String
3
4
app
::
V
->
V
->
V
5
app
(
Fun
f
)
v
=
f v
6
7
unlist
::
V
->
String
8
unlist
l
=
s
where
Str
s
=
l
9
10
m
=
Fun
(
\
a
->
a
`
app
`
a
)
11
12
main
=
interact
(
\
input
->
unlist
(
m
`
app
`
m
))
Download in other formats:
Original Format