on master help sign in
Added missing example.
commitc2270949fbd0d0680f9b46b67338acf178b2dadd authorJan de Muijnck-Hughes <jfdm@st-andrews.ac.uk> dateTue 24 Mar 2015, 07:41 (12 years ago) parenta87a66b
1 file changed+7
docs/tutorial/starting.rst+7
docs/tutorial/starting.rst+7
@@ -36,6 +36,13 @@ To check that installation has succeeded, and to write your first
3636Idris program, create a file called “``hello.idr``” containing the
3737following text:
3838
39+.. code-block:: idris
40+
41+ module Main
42+
43+ main : IO ()
44+ main = putStrLn "Hello world"
45+
3946If you are familiar with Haskell, it should be fairly clear what the
4047program is doing and how it works, but if not, we will explain the
4148details later. You can compile the program to an executable by