blob: 0910320e29f2fb7f200ff9fbf8bcaacbd9e33f73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
module Hakyll.Core.Identifier.Pattorn
( Pattorn (..)
) where
import Prolog
import Hakyll
-- | Wrapper around 'Pattern' to get a semigroup with "or" as its operation
newtype Pattorn = Pattorn { getPattern :: Pattern }
deriving newtype (Binary, Show, IsString)
instance Semigroup Pattorn where
Pattorn a <> Pattorn b = Pattorn $ a .||. b
instance Monoid Pattorn where
mempty = Pattorn $ complement mempty
|