hlint changes
This commit is contained in:
parent
a7f6241f50
commit
bbb3d8d442
1 changed files with 1 additions and 3 deletions
|
@ -65,9 +65,7 @@ highlight :: (FormatOptions -> [SourceLine] -> a) -- ^ Formatter
|
|||
-> String -- ^ Raw contents of the CodeBlock
|
||||
-> Maybe a -- ^ Maybe the formatted result
|
||||
highlight formatter (_, classes, keyvals) rawCode =
|
||||
let firstNum = case safeRead (fromMaybe "1" $ lookup "startFrom" keyvals) of
|
||||
Just n -> n
|
||||
Nothing -> 1
|
||||
let firstNum = fromMaybe 1 (safeRead (fromMaybe "1" $ lookup "startFrom" keyvals))
|
||||
fmtOpts = defaultFormatOpts{
|
||||
startNumber = firstNum,
|
||||
numberLines = any (`elem`
|
||||
|
|
Loading…
Add table
Reference in a new issue