Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 6d5d802

Browse files
committed
more instances
1 parent 351de15 commit 6d5d802

File tree

2 files changed

+59
-20
lines changed

2 files changed

+59
-20
lines changed

src/ECharts/Monad.purs

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@ module ECharts.Monad where
22

33
import Prelude
44

5+
import Control.Alt (class Alt)
56
import Control.Alternative (class Alternative)
7+
import Control.MonadPlus (class MonadPlus)
8+
import Control.MonadZero (class MonadZero)
9+
import Control.Monad.Cont.Class (class MonadCont)
10+
import Control.Monad.Eff.Class (class MonadEff)
11+
import Control.Monad.Aff.Class (class MonadAff)
12+
import Control.Monad.Error.Class (class MonadError, class MonadThrow)
13+
import Control.Monad.Reader.Class (class MonadAsk, class MonadReader)
14+
import Control.Monad.State.Class (class MonadState)
615
import Control.Monad.Eff (kind Effect)
16+
import Control.Monad.Rec.Class (class MonadRec)
717
import Control.Monad.Writer.Trans (WriterT(..), execWriterT)
818
import Control.Monad.Writer.Class (class MonadTell, class MonadWriter, tell)
9-
import Control.Plus (empty)
19+
import Control.Plus (class Plus, empty)
1020
import Data.Array as Arr
1121
import Data.Foldable as F
1222
import Data.Identity (Identity)
@@ -39,8 +49,36 @@ derive newtype instance monadDSL
3949
Monad m Monad (CommandsT i m)
4050
derive newtype instance monadTellCommandsT
4151
Monad m MonadTell (Array (Tuple String Foreign)) (CommandsT i m)
42-
derive newtype instance monadWriterCommandsTn
52+
derive newtype instance monadWriterCommandsT
4353
Monad m MonadWriter (Array (Tuple String Foreign)) (CommandsT i m)
54+
derive newtype instance plusCommandsT
55+
Plus m Plus (CommandsT i m)
56+
derive newtype instance altCommandsT
57+
Alt m Alt (CommandsT i m)
58+
derive newtype instance alternativeCommandsT
59+
Alternative m Alternative (CommandsT i m)
60+
derive newtype instance monadRecCommandsT
61+
MonadRec m MonadRec (CommandsT i m)
62+
derive newtype instance monadZeroCommandsT
63+
MonadZero m MonadZero (CommandsT i m)
64+
derive newtype instance monadPlusCommandsT
65+
MonadPlus m MonadPlus (CommandsT i m)
66+
derive newtype instance monadAffCommandsT
67+
MonadAff e m MonadAff e (CommandsT i m)
68+
derive newtype instance monadEffCommandsT
69+
MonadEff e m MonadEff e (CommandsT i m)
70+
derive newtype instance monadContCommandsT
71+
MonadCont m MonadCont (CommandsT i m)
72+
derive newtype instance monadThrowCommandsT
73+
MonadThrow e m MonadThrow e (CommandsT i m)
74+
derive newtype instance monadErrorCommandsT
75+
MonadError e m MonadError e (CommandsT i m)
76+
derive newtype instance monadAskCommandsT
77+
MonadAsk r m MonadAsk r (CommandsT i m)
78+
derive newtype instance monadReaderCommandsT
79+
MonadReader r m MonadReader r (CommandsT i m)
80+
derive newtype instance monadStateCommandsT
81+
MonadState s m MonadState s (CommandsT i m)
4482

4583
lift m i a. Monad m m a CommandsT i m a
4684
lift a = CommandsT $ WriterT do

src/ECharts/Types/Phantom.purs

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -597,24 +597,25 @@ type SeriesI =
597597
-- | xAxis and yAxis has different position type
598598
type AxisI i =
599599
ZMixin
600-
(MinMaxMixin
601-
( axisType I
602-
, items I
603-
, axisTick I
604-
, axisLabel I
605-
, name I
606-
, scale I
607-
, boundaryGap I
608-
, silent I
609-
, splitLine I
610-
, splitArea I
611-
, axisLine I
612-
, interval I
613-
, inverse I
614-
, splitNumber I
615-
, minInterval I
616-
, triggerEvent I
617-
| i))
600+
(NameStyleMixin
601+
(MinMaxMixin
602+
( axisType I
603+
, items I
604+
, axisTick I
605+
, axisLabel I
606+
, name I
607+
, scale I
608+
, boundaryGap I
609+
, silent I
610+
, splitLine I
611+
, splitArea I
612+
, axisLine I
613+
, interval I
614+
, inverse I
615+
, splitNumber I
616+
, minInterval I
617+
, triggerEvent I
618+
| i)))
618619

619620
type SplitAreaI =
620621
( show I

0 commit comments

Comments
 (0)