File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/Codec/CBOR/Cuddle/CBOR Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
cabal-version : 3.4
2
2
name : cuddle
3
- version : 0.1.3 .0
3
+ version : 0.1.6 .0
4
4
synopsis : CDDL Generator and test utilities
5
5
6
6
-- description:
Original file line number Diff line number Diff line change @@ -262,11 +262,13 @@ genForCTree (CTree.Range from to _bounds) = do
262
262
term1 <- genForNode from
263
263
term2 <- genForNode to
264
264
case (term1, term2) of
265
+ (S (TInt a), S (TInt b)) -> genUniformRM (a, b) <&> S . TInt
266
+ (S (TInt a), S (TInteger b)) -> genUniformRM (fromIntegral a, b) <&> S . TInteger
265
267
(S (TInteger a), S (TInteger b)) -> genUniformRM (a, b) <&> S . TInteger
266
268
(S (THalf a), S (THalf b)) -> genUniformRM (a, b) <&> S . THalf
267
269
(S (TFloat a), S (TFloat b)) -> genUniformRM (a, b) <&> S . TFloat
268
270
(S (TDouble a), S (TDouble b)) -> genUniformRM (a, b) <&> S . TDouble
269
- _ -> error " Cannot apply range operator to non-numeric types"
271
+ x -> error $ " Cannot apply range operator to non-numeric types: " <> show x
270
272
genForCTree (CTree. Control op target controller) = do
271
273
tt <- resolveIfRef target
272
274
ct <- resolveIfRef controller
You can’t perform that action at this time.
0 commit comments