Reword code types
This commit is contained in:
부모
8f9343cb36
커밋
42fed3b696
6
VL1.tex
6
VL1.tex
|
@ -692,10 +692,10 @@ For haskell IDEs, see \url{https://wiki.haskell.org/IDEs}
|
|||
Does this compile? If not, fix it. Is this a total function?
|
||||
\setHaskellCodeStyle
|
||||
\begin{lstlisting}
|
||||
data FakeInt = MkDouble Double
|
||||
| MkInt Int
|
||||
data IntOrDouble = MkDouble Double
|
||||
| MkInt Int
|
||||
|
||||
f :: Int -> FakeInt
|
||||
f :: Int -> IntOrDouble
|
||||
f 0 = 0.5
|
||||
\end{lstlisting}
|
||||
\end{frame}
|
||||
|
|
불러오는 중...
Reference in New Issue