breve/Shortener/Common.hs

16 lines
362 B
Haskell
Raw Normal View History

2015-04-08 12:47:56 +02:00
{-# 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"