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 #6146
Ticket #6146
: Main.hs
File Main.hs,
260 bytes
(added by emcdowell,
12 months
ago)
Main.hs
Line
1
module
Main
(
main
)
where
2
3
main
::
IO
()
4
main
=
do
5
putStrLn
"First number? "
6
num1
<-
readLn
::
IO
Int
7
putStrLn
"Second number? "
8
num2
<-
readLn
::
IO
Int
9
let
total
=
num1
+
num2
10
putStrLn
$
"The sum is "
++
(
show total
)
++
"."
Download in other formats:
Original Format