]> git.rmz.io Git - my-scheme.git/commit
Print the sum of two arguments
authorSamir Benmendil <me@rmz.io>
Sat, 13 Jan 2018 22:06:26 +0000 (22:06 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 13 Jan 2018 22:06:26 +0000 (22:06 +0000)
commit0742b9f77a6fe617f929e21e143e35cd6e3d3ed6
tree87d60fae6d6b64f1d85194bcebcd162d64fec807
parent5bd76ea90313c3b469e1b7fce192f3cd54c57a33
Print the sum of two arguments

`read`'s type is defined as `read :: (Read a) => String -> a`, i.e.
`read` takes as `String` and returns an `a` (number?). I don't know what
`=>` means. (`(Read a)` is an instance of class Read ?)

`show`'s type is a bit more complicated it seems as it has multiple
instances for various types of input. But in essence it takes a type and
returns a `String`.
app/Main.hs