breve/Shortener/Common.hs

14 lines
351 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
2015-04-08 13:55:36 +02:00
data AppSettings = AppSettings { }
2015-04-08 12:47:56 +02:00
newAppSettings :: IO AppSettings
2015-04-08 13:55:36 +02:00
newAppSettings = return AppSettings
2015-04-08 12:47:56 +02:00
instance HasTemplates IO AppSettings where
defaultLayout = Just <$> getTemplate "layouts/main.html"