avoid partial functions
authorJoey Hess <joeyh@joeyh.name>
Tue, 30 Jul 2024 15:27:20 +0000 (11:27 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 30 Jul 2024 15:28:44 +0000 (11:28 -0400)
commit43b8d96d8a037b80fbc05c6699655c3250d2802e
treefa469a38a927991248c17e9bbbc786bae4759bfe
parent41cef62dad3f251c08cf3e18cf743eb8cf433e56
avoid partial functions

This is horrible old code and ghc has started to warn about head and
tail. Rewrote it to avoid all partial functions except !! and guarded
uses of !! with length checks.
Upgrade/V1.hs