Skip to content

Commit e5d0e2c

Browse files
committed
candles fix
1 parent e361d3b commit e5d0e2c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

pub/bfx/src/Bfx/Data/Candles.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ data Section
2121
( Eq,
2222
Ord,
2323
Show,
24+
Read,
25+
Data,
2426
Generic
2527
)
2628

@@ -40,6 +42,8 @@ data Request = Request
4042
( Eq,
4143
Ord,
4244
Show,
45+
Read,
46+
Data,
4347
Generic
4448
)
4549

@@ -52,6 +56,8 @@ data Options = Options
5256
( Eq,
5357
Ord,
5458
Show,
59+
Read,
60+
Data,
5561
Generic
5662
)
5763

pub/bfx/src/Bfx/Data/Type.hs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ data Candle = Candle
387387
( Eq,
388388
Ord,
389389
Show,
390+
Read,
391+
Data,
390392
Generic
391393
)
392394

@@ -407,8 +409,17 @@ data CandleTimeFrame
407409
( Eq,
408410
Ord,
409411
Show,
410-
Generic
412+
Read,
413+
Data,
414+
Generic,
415+
Enum,
416+
Bounded
417+
)
418+
deriving
419+
( HasCodec,
420+
HasItemCodec
411421
)
422+
via GenericEnum CandleTimeFrame
412423

413424
instance NFData CandleTimeFrame
414425

0 commit comments

Comments
 (0)