mirror of
https://github.com/byteverse/colonnade.git
synced 2024-08-15 09:40:46 +03:00
make it build with ghc 8.2.2 and ghc 8.0.2
This commit is contained in:
parent
36cf1917d8
commit
d17193baae
@ -32,6 +32,8 @@ import Data.String (IsString(..))
|
||||
import Text.Blaze (Attribute,toValue)
|
||||
import Data.Foldable
|
||||
import Yesod.Elements (table_,thead_,tbody_,tr_,td_,th_,ul_,li_,a_)
|
||||
import Data.Semigroup (Semigroup)
|
||||
import qualified Data.Semigroup as SG
|
||||
import qualified Text.Blaze.Html5.Attributes as HA
|
||||
import qualified Text.Blaze.Html5 as H
|
||||
import qualified Colonnade.Encode as E
|
||||
@ -53,7 +55,7 @@ instance Semigroup (Cell site) where
|
||||
Cell a1 c1 <> Cell a2 c2 = Cell (mappend a1 a2) (mappend c1 c2)
|
||||
instance Monoid (Cell site) where
|
||||
mempty = Cell mempty mempty
|
||||
mappend = (<>)
|
||||
mappend = (SG.<>)
|
||||
|
||||
-- | Create a 'Cell' from a 'Widget'
|
||||
cell :: WidgetFor site () -> Cell site
|
||||
|
@ -1,6 +1,6 @@
|
||||
cabal-version: 2.0
|
||||
name: yesod-colonnade
|
||||
version: 1.3.0
|
||||
version: 1.3.0.1
|
||||
synopsis: Helper functions for using yesod with colonnade
|
||||
description: Yesod and colonnade
|
||||
homepage: https://github.com/andrewthad/colonnade#readme
|
||||
@ -17,7 +17,7 @@ library
|
||||
exposed-modules:
|
||||
Yesod.Colonnade
|
||||
build-depends:
|
||||
base >= 4.9 && < 4.12
|
||||
base >= 4.9.1.0 && < 4.12
|
||||
, colonnade >= 1.2 && < 1.3
|
||||
, yesod-core >= 1.6 && < 1.7
|
||||
, conduit >= 1.3 && < 1.4
|
||||
|
Loading…
Reference in New Issue
Block a user