You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
493 B

\documentclass[a4paper]{report}
\usepackage[left=2.5cm,right=2.5cm]{geometry}
\usepackage{listings}
\usepackage{tcolorbox}
\usepackage{minted}
\begin{document}
\begin{haskellcode}
{-# LANGUAGE QuasiQuotes #-}
import Yesod
data HelloWorld = HelloWorld
mkYesod "HelloWorld" [parseRoutes|
/ HomeR GET
|]
instance Yesod HelloWorld
getHomeR :: Handler Html
getHomeR = defaultLayout [whamlet|Hello World!|]
main :: IO ()
main = warp 3000 HelloWorld
\end{haskellcode}
\end{document}