haskell / directory

Platform-independent library for basic file system operations
https://hackage.haskell.org/package/directory
Other
58 stars 47 forks source link

Avoid `Data.List.{head,tail}` #146

Closed Bodigrim closed 1 year ago

Bodigrim commented 1 year ago

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.

GHC boot packages must compile with GHC HEAD without any warnings, so this PR eliminates them.

Rufflewind commented 1 year ago

Thanks!