CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
26
Task/Documentation/Haskell/documentation-1.hs
Normal file
26
Task/Documentation/Haskell/documentation-1.hs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
-- |This is a documentation comment for the following function
|
||||
square1 :: Int -> Int
|
||||
square1 x = x * x
|
||||
|
||||
-- |It can even
|
||||
-- span multiple lines
|
||||
square2 :: Int -> Int
|
||||
square2 x = x * x
|
||||
|
||||
square3 :: Int -> Int
|
||||
-- ^You can put the comment underneath if you like, like this
|
||||
square3 x = x * x
|
||||
|
||||
{-|
|
||||
Haskell block comments
|
||||
are also supported
|
||||
-}
|
||||
square4 :: Int -> Int
|
||||
square4 x = x * x
|
||||
|
||||
-- |This is a documentation comment for the following datatype
|
||||
data Tree a = Leaf a | Node [Tree a]
|
||||
|
||||
-- |This is a documentation comment for the following type class
|
||||
class Foo a where
|
||||
bar :: a
|
||||
25
Task/Documentation/Haskell/documentation-2.hs
Normal file
25
Task/Documentation/Haskell/documentation-2.hs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
############################################################################
|
||||
#
|
||||
# File: filename.icn
|
||||
#
|
||||
# Subject: Short Description
|
||||
#
|
||||
# Author: Author's name
|
||||
#
|
||||
# Date: Date
|
||||
#
|
||||
############################################################################
|
||||
#
|
||||
# This file is in the public domain. (or other license)
|
||||
#
|
||||
############################################################################
|
||||
#
|
||||
# Long form docmentation
|
||||
#
|
||||
############################################################################
|
||||
#
|
||||
# Links:
|
||||
#
|
||||
############################################################################
|
||||
|
||||
procedure x1() #: short description of procedure
|
||||
1
Task/Documentation/Haskell/documentation-3.hs
Normal file
1
Task/Documentation/Haskell/documentation-3.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
XYZ
|
||||
Loading…
Add table
Add a link
Reference in a new issue