6 lines
158 B
TeX
6 lines
158 B
TeX
Another way which is very similar would be using \hinline{let}:
|
|
\begin{haskellcode}
|
|
f :: Int -> Int
|
|
f x = let y p = x + p
|
|
in x + (y 2)
|
|
\end{haskellcode} |