Parsing: replace partial with total function
Calling `tail` on an empty list raises an exception, while calling the otherwise equivalent `drop 1` will return the empty list again.
This commit is contained in:
parent
fbce4228a5
commit
7a17c3eb9f
1 changed files with 1 additions and 1 deletions
|
@ -1380,5 +1380,5 @@ insertIncludedFile blocks dirs f = do
|
|||
bs <- blocks
|
||||
setInput oldInput
|
||||
setPosition oldPos
|
||||
updateState $ \s -> s{ stateContainers = tail $ stateContainers s }
|
||||
updateState $ \s -> s{ stateContainers = drop 1 $ stateContainers s }
|
||||
return bs
|
||||
|
|
Loading…
Add table
Reference in a new issue