Permalink
Browse files

Add starter Models

  • Loading branch information...
danpalmer committed Jun 11, 2016
1 parent 941b4d2 commit d4b15434e245e23cb4be97bcfa2db1a96e281548
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/Models.hs
@@ -0,0 +1,18 @@
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module Models where
import Database.Persist.TH
share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase|
BlogPost
title String
content String
deriving Eq Show
|]

0 comments on commit d4b1543

Please sign in to comment.