mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 04:46:31 +03:00
28 lines
706 B
Haskell
28 lines
706 B
Haskell
{-# LANGUAGE OverloadedStrings #-}
|
|
{-# LANGUAGE NoMonomorphismRestriction #-}
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
module Main where
|
|
|
|
-- cabal missing-home-modules workaround from hledger-lib needed here ?
|
|
-- {-# LANGUAGE PackageImports #-}
|
|
|
|
import Import
|
|
import Yesod.Default.Config
|
|
import Yesod.Test
|
|
import Test.Hspec (hspec)
|
|
import Application (makeFoundation)
|
|
import Hledger.Web.WebOptions (defwebopts)
|
|
|
|
import HomeTest
|
|
|
|
main :: IO ()
|
|
main = do
|
|
conf <- Yesod.Default.Config.loadConfig $ (configSettings Testing)
|
|
{ csParseExtra = parseExtra
|
|
}
|
|
foundation <- makeFoundation conf defwebopts
|
|
hspec $ do
|
|
yesodSpec foundation $ do
|
|
homeSpecs
|