Basic syntax highlighting
This commit is contained in:
parent
2c38910ccd
commit
37e92392ca
4 changed files with 87 additions and 3 deletions
|
@ -5,3 +5,27 @@ module Posts.HelloWorld
|
|||
|
||||
%default total
|
||||
```
|
||||
|
||||
Here is an example function that prints to the standard out:
|
||||
|
||||
```idris
|
||||
main : IO ()
|
||||
main = do
|
||||
putStrLn "Hello World"
|
||||
putStrLn "Hello \n with new lines \n world"
|
||||
putStrLn "And some other potential problem characters: * _"
|
||||
```
|
||||
|
||||
And a function with some more stuff:
|
||||
|
||||
```idris
|
||||
-- A regular comment
|
||||
|
||||
||| A doc comment
|
||||
thingomizer : (a : String) -> IO ()
|
||||
thingomizer a =
|
||||
let xs = map (+ 1) [1, 2, 3, 4]
|
||||
in do
|
||||
putStrLn a
|
||||
printLn xs
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue