I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Using Yesod (AForm) to build a simple web interface to Pandoc | |
-- THIS is simply a demonstration, much can be done to improve it. | |
{-# LANGUAGE QuasiQuotes, TemplateHaskell, MultiParamTypeClasses, | |
OverloadedStrings, TypeFamilies #-} | |
import Yesod | |
import Data.Text (Text, unpack, pack) | |
import Text.Pandoc | |
import Control.Applicative ((<$>), (<*>)) | |
data Yespandoc = Yespandoc |