module Unison.WatchKind
( WatchKind,
pattern RegularWatch,
pattern TestWatch,
watchKindShouldBeStoredInDatabase,
)
where
import Data.String (IsString)
type WatchKind =
String
pattern RegularWatch :: (Eq a, IsString a) => a
pattern $mRegularWatch :: forall {r} {a}.
(Eq a, IsString a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bRegularWatch :: forall a. (Eq a, IsString a) => a
RegularWatch = ""
pattern TestWatch :: (Eq a, IsString a) => a
pattern $mTestWatch :: forall {r} {a}.
(Eq a, IsString a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
$bTestWatch :: forall a. (Eq a, IsString a) => a
TestWatch = "test"
watchKindShouldBeStoredInDatabase :: Maybe WatchKind -> Bool
watchKindShouldBeStoredInDatabase :: Maybe WatchKind -> Bool
watchKindShouldBeStoredInDatabase = \case
Maybe WatchKind
Nothing -> Bool
True
Just WatchKind
TestWatch -> Bool
True
Maybe WatchKind
_ -> Bool
False