remove read of the heads
and one tail Removed head from Utility.PartialPrelude in order to avoid the build warning with recent ghc versions as well.
This commit is contained in:
parent
10216b44d2
commit
4ca3d1d584
12 changed files with 32 additions and 42 deletions
|
@ -167,7 +167,7 @@ readKey1' v
|
|||
}
|
||||
where
|
||||
bits = splitc ':' v
|
||||
b = Prelude.head bits
|
||||
b = fromMaybe (error "unable to parse v0 key") (headMaybe bits)
|
||||
n = intercalate ":" $ drop (if wormy then 3 else 1) bits
|
||||
t = if wormy
|
||||
then readMaybe (bits !! 1) :: Maybe EpochTime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue