Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add starter Models
  • Loading branch information
danpalmer committed Jun 11, 2016
1 parent 941b4d2 commit d4b1543
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 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.