summaryrefslogtreecommitdiff
path: root/00_blog/00040_Haskell/00015_Code-Snippets/index.md
blob: 12356fc0621166bfc1a6d8bdf9b08ecde4b1425d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Haskell code snipets

The source code below was auto-fetched from: 
<https://gitweb.softwarefools.com/?p=miguel/haskell.git;a=blob;f=snip/snip.hs>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell .numberLines}
{BEGIN:EMBED}
https://gitweb.softwarefools.com/?p=miguel/haskell.git;a=blob_plain;f=snip/snip.hs
{END:EMBED}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

## Shebang

You can also use haskell in conjunction with a shebang line as illustrated
below: 

The source code below was auto-fetched from: 
<https://gitweb.softwarefools.com/?p=miguel/haskell.git;a=blob;f=snip/shebang.hs>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.haskell .numberLines}
{BEGIN:EMBED}
https://gitweb.softwarefools.com/?p=miguel/haskell.git;a=blob_plain;f=snip/shebang.hs
{END:EMBED}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~