Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- newtype SubscriptionName = SubscriptionName ByteString
- data SubscribeParams
- data SubscriptionNotification
- data SubscriptionFiles = SubscriptionFiles {}
- data SubscriptionStateEnter = SubscriptionStateEnter {}
- data SubscriptionStateLeave = SubscriptionStateLeave {}
- renderSubscribe :: WFilePath -> SubscriptionName -> Expression -> [SubscribeParams -> SubscribeParams] -> [FileFieldLabel] -> BSERValue
- parseSubscriptionNotification :: [FileFieldLabel] -> BSERValue -> Parser SubscriptionNotification
- since :: Clockspec -> SubscribeParams -> SubscribeParams
- deferVcs :: Bool -> SubscribeParams -> SubscribeParams
- defer :: [StateName] -> SubscribeParams -> SubscribeParams
- drop :: [StateName] -> SubscribeParams -> SubscribeParams
Documentation
newtype SubscriptionName Source #
renderSubscribe :: WFilePath -> SubscriptionName -> Expression -> [SubscribeParams -> SubscribeParams] -> [FileFieldLabel] -> BSERValue Source #
parseSubscriptionNotification :: [FileFieldLabel] -> BSERValue -> Parser SubscriptionNotification Source #
since :: Clockspec -> SubscribeParams -> SubscribeParams Source #
The subscribe command object allows the client to specify a since parameter; if present in the command,
the initial set of subscription results will only include files that changed since the specified clockspec,
equivalent to using the query
command with the since
generator.
deferVcs :: Bool -> SubscribeParams -> SubscribeParams Source #
Starting in watchman version 3.2, after the notification stream is complete, if the root appears to
be a version control directory, subscription notifications will be held until an outstanding version
control operation is complete (at the time of writing, this is based on the presence of either
.hg/wlock
or .git/index.lock
). This behavior matches triggers and helps to avoid performing transient
work in response to files changing, for example, during a rebase operation.
In some circumstances it is desirable for a client to observe the creation of the control files at the start of a version control operation. You may specify that you want this behavior by using 'deferVcs False'
defer :: [StateName] -> SubscribeParams -> SubscribeParams Source #
drop :: [StateName] -> SubscribeParams -> SubscribeParams Source #