breve/Shortener/Common.hs
2015-04-08 12:47:56 +02:00

16 lines
362 B
Haskell

{-# LANGUAGE MultiParamTypeClasses #-}
module Shortener.Common where
import Control.Applicative
import Web.Simple
import Web.Simple.Templates
data AppSettings = AppSettings { }
newAppSettings :: IO AppSettings
newAppSettings = do
return $ AppSettings
instance HasTemplates IO AppSettings where
defaultLayout = Just <$> getTemplate "layouts/main.html"