@@ -19,6 +19,7 @@ import Codec.Xlsx.Types.Internal
19
19
import Codec.Xlsx.Writer.Internal
20
20
import Common
21
21
import Data.ByteString.Lazy (ByteString )
22
+ import Data.Generics.Labels
22
23
import Diff
23
24
import Test.Tasty (TestTree , testGroup )
24
25
import Test.Tasty.HUnit (testCase )
@@ -86,10 +87,10 @@ testDrawing = Drawing [anchor1, anchor2]
86
87
}
87
88
shProps =
88
89
ShapeProperties
89
- { _spXfrm = Just trnsfrm,
90
- _spGeometry = Just PresetGeometry ,
91
- _spFill = Nothing ,
92
- _spOutline = Just $ def {_lnFill = Just NoFill }
90
+ { spXfrm = Just trnsfrm,
91
+ spGeometry = Just PresetGeometry ,
92
+ spFill = Nothing ,
93
+ spOutline = Just $ def {_lnFill = Just NoFill }
93
94
}
94
95
trnsfrm =
95
96
Transform2D
@@ -306,8 +307,8 @@ testLineChartSpace = oneChartChartSpace lineChart
306
307
]
307
308
rgbShape color =
308
309
def
309
- { _spFill = Just $ solidRgb color,
310
- _spOutline =
310
+ { spFill = Just $ solidRgb color,
311
+ spOutline =
311
312
Just $
312
313
LineProperties {_lnFill = Just $ solidRgb color, _lnWidth = 28800 }
313
314
}
@@ -327,8 +328,8 @@ testAreaChartSpace = oneChartChartSpace areaChart
327
328
_serShapeProperties =
328
329
Just $
329
330
def
330
- { _spFill = Just $ solidRgb " 000088" ,
331
- _spOutline = Just $ def {_lnFill = Just NoFill }
331
+ { spFill = Just $ solidRgb " 000088" ,
332
+ spOutline = Just $ def {_lnFill = Just NoFill }
332
333
}
333
334
},
334
335
_arserDataLblProps = Nothing ,
@@ -350,8 +351,8 @@ testBarChartSpace =
350
351
_serShapeProperties =
351
352
Just $
352
353
def
353
- { _spFill = Just $ solidRgb " 000088" ,
354
- _spOutline = Just $ def {_lnFill = Just NoFill }
354
+ { spFill = Just $ solidRgb " 000088" ,
355
+ spOutline = Just $ def {_lnFill = Just NoFill }
355
356
}
356
357
},
357
358
_brserDataLblProps = Nothing ,
@@ -372,17 +373,17 @@ testPieChartSpace =
372
373
_serShapeProperties = Nothing
373
374
},
374
375
_piserDataPoints =
375
- [ def & dpShapeProperties ?~ solidFill " 000088" ,
376
- def & dpShapeProperties ?~ solidFill " 008800" ,
377
- def & dpShapeProperties ?~ solidFill " 880000"
376
+ [ def & # dpShapeProperties ?~ solidFill " 000088" ,
377
+ def & # dpShapeProperties ?~ solidFill " 008800" ,
378
+ def & # dpShapeProperties ?~ solidFill " 880000"
378
379
],
379
380
_piserDataLblProps = Nothing ,
380
381
_piserVal = Just $ Formula " Sheet1!$B$1:$D$1"
381
382
}
382
383
]
383
384
}
384
385
where
385
- solidFill color = def & spFill ?~ solidRgb color
386
+ solidFill color = def & # spFill ?~ solidRgb color
386
387
387
388
testScatterChartSpace :: ChartSpace
388
389
testScatterChartSpace =
@@ -395,7 +396,7 @@ testScatterChartSpace =
395
396
Series
396
397
{ _serTx = Just $ Formula " Sheet1!$A$2" ,
397
398
_serShapeProperties =
398
- Just $ def {_spOutline = Just $ def {_lnFill = Just NoFill }}
399
+ Just $ def {spOutline = Just $ def {_lnFill = Just NoFill }}
399
400
},
400
401
_scserMarker = Just $ DataMarker (Just DataMarkerSquare ) Nothing ,
401
402
_scserDataLblProps = Nothing ,
0 commit comments