Avoid non-exhaustive pattern match.
This commit is contained in:
parent
1e0439710b
commit
b3c9d94fe0
1 changed files with 4 additions and 2 deletions
|
@ -575,8 +575,10 @@ symbol = B.str . (:[]) <$> oneOf specialChars
|
|||
getTarget :: T2T String
|
||||
getTarget = do
|
||||
mv <- lookupMeta "target" . stateMeta <$> getState
|
||||
let MetaString target = fromMaybe (MetaString "html") mv
|
||||
return target
|
||||
return $ case mv of
|
||||
Just (MetaString target) -> target
|
||||
Just (MetaInlines [Str target]) -> target
|
||||
_ -> "html"
|
||||
|
||||
atStart :: T2T ()
|
||||
atStart = (sourceColumn <$> getPosition) >>= guard . (== 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue