Skip to content

Commit d76d9bf

Browse files
committed
better instance for Styleable, Attributable to handle outside cases
1 parent f33bab0 commit d76d9bf

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Web/Atomic/CSS.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module Web.Atomic.CSS
4545
, right
4646
, left
4747
, overflow
48+
, Overflow (..)
4849

4950
-- ** Flexbox
5051
-- $flexbox

src/Web/Atomic/Types/Attributable.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Attributable h where
3333
infixl 5 @
3434

3535

36-
instance {-# OVERLAPPABLE #-} (Attributable a, Attributable b) => Attributable (a -> b) where
36+
instance {-# OVERLAPPABLE #-} (Attributable b) => Attributable (a -> b) where
3737
(@) :: (a -> b) -> (Attributes (a -> b) -> Attributes (a -> b)) -> (a -> b)
3838
hh @ f = \content ->
3939
hh content @ \(Attributes m) ->

src/Web/Atomic/Types/Styleable.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Styleable h where
2525
infixl 5 ~
2626

2727

28-
instance {-# OVERLAPPABLE #-} (Styleable a, Styleable b) => Styleable (a -> b) where
28+
instance {-# OVERLAPPABLE #-} (Styleable b) => Styleable (a -> b) where
2929
(~) :: (a -> b) -> (CSS (a -> b) -> CSS (a -> b)) -> (a -> b)
3030
hh ~ f = \content ->
3131
hh content ~ \(CSS m) ->

0 commit comments

Comments
 (0)