haskell / filepath

Haskell FilePath core library
BSD 3-Clause "New" or "Revised" License
66 stars 32 forks source link

Avoid head and tail - [opened] #109

Closed hasufell closed 1 year ago

hasufell commented 1 year ago

In GitLab by @Bodigrim on Dec 1, 2022, 08:37

Merges avoid-head-and-tail -> master

CLC has approved the proposal to add {-# WARNING #-} to Data.List.{head,tail} (https://github.com/haskell/core-libraries-committee/issues/87). It means that usage of head and tail will emit compile-time warnings.

This patch eliminates usages of head and tail in the library component of filepath.

hasufell commented 1 year ago

historical ref: https://gitlab.haskell.org/haskell/filepath/-/merge_requests/117