Merge pull request #19 from drupol/patch-1

This commit is contained in:
Avi Dessauer 2020-09-18 13:30:00 -04:00 committed by GitHub
commit 536b425950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,7 @@ fmtComponent (p, c) =
<> "component: "
<> dQuote c
-- | Same as init but handle empty list without throwing errors.
dropLast :: [a] -> [a]
dropLast l = take (length l - 1) l