hledger-web: build with GHC-7.10

This commit is contained in:
Simon Michael 2015-03-29 06:33:53 -07:00
parent 216ebb8333
commit aa47a7dc12
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,4 @@
{-# LANGUAGE FlexibleContexts #-}
-- | Add form data & handler. (The layout and js are defined in
-- Foundation so that the add form can be in the default layout for
-- all views.)

View File

@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
-- | Web handler utilities. More of these are in Foundation.hs, where
-- they can be used in the default template.
@ -7,8 +8,9 @@ import Prelude
import Data.Time.Calendar
import Data.Time.Clock
import Data.Time.Format
#if !(MIN_VERSION_time(1,5,0))
import System.Locale (defaultTimeLocale)
#endif
numbered :: [a] -> [(Int,a)]
numbered = zip [1..]