mirror of https://github.com/voidlizard/hbs2
wip, bugfix
This commit is contained in:
parent
dbd4b81ca7
commit
22a4ef450c
|
@ -128,8 +128,8 @@ quit = liftIO Q.exitSuccess
|
||||||
pattern GitHashLike:: forall {c} . GitHash -> Syntax c
|
pattern GitHashLike:: forall {c} . GitHash -> Syntax c
|
||||||
pattern GitHashLike x <- (
|
pattern GitHashLike x <- (
|
||||||
\case
|
\case
|
||||||
StringLike s -> fromStringMay @GitHash s
|
|
||||||
LitIntVal 0 -> Just $ GitHash (BS.replicate 20 0)
|
LitIntVal 0 -> Just $ GitHash (BS.replicate 20 0)
|
||||||
|
StringLike s -> fromStringMay @GitHash s
|
||||||
_ -> Nothing
|
_ -> Nothing
|
||||||
-> Just x )
|
-> Just x )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue