mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-11 07:36:29 -07:00
Add missing Semigroup import for older GHC
This commit is contained in:
parent
2a16a4e8c1
commit
495e34d101
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@
|
|||
-- Generic basic utility functions
|
||||
module ShellCheck.Prelude where
|
||||
|
||||
import Data.Semigroup
|
||||
|
||||
|
||||
-- Get element 0 or a default. Like `head` but safe.
|
||||
headOrDefault _ (a:_) = a
|
||||
headOrDefault def _ = def
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue