Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/Keter/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE CPP #-}

module Keter.Main
( keter
Expand Down Expand Up @@ -188,12 +189,27 @@
FSN.Removed fp _ _ -> do
rio $ $logInfo $ "Watched file removed: " <> T.pack fp
return $ Left fp
FSN.Added fp _ _ -> do
#if linux_BUILD_OS
FSN.Added fp _ _ True -> do

Check failure on line 193 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.8, ubuntu-latest)

• The data constructor ‘FSN.Added’ should have 3 arguments, but has been given 4

Check failure on line 193 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.12, ubuntu-latest)

• The data constructor ‘FSN.Added’ should have 3 arguments, but has been given 4

Check failure on line 193 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.10, ubuntu-latest)

• The data constructor ‘FSN.Added’ should have 3 arguments, but has been given 4

Check failure on line 193 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.6, ubuntu-latest)

• The constructor ‘FSN.Added’ should have 3 arguments, but has been given 4
rio $ $logInfo $ "Watched file added atomically: " <> T.pack fp
return $ Right fp
FSN.Added fp _ _ False -> do
rio $ $logInfo $ "Watched file added: " <> T.pack fp
return $ Left []
FSN.Modified fp _ _ -> do
rio $ $logInfo $ "Watched file modified: " <> T.pack fp
return $ Left []
FSN.CloseWrite fp _ _ -> do
rio $ $logInfo $ "Watched file close write: " <> T.pack fp
return $ Right fp
#else
FSN.Added fp _ _ _ -> do

Check failure on line 206 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.6, macOS-latest)

• The constructor ‘FSN.Added’ should have 3 arguments, but has been given 4

Check failure on line 206 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.8, macOS-latest)

• The data constructor ‘FSN.Added’ should have 3 arguments, but has been given 4

Check failure on line 206 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.10, macOS-latest)

• The data constructor ‘FSN.Added’ should have 3 arguments, but has been given 4

Check failure on line 206 in src/Keter/Main.hs

View workflow job for this annotation

GitHub Actions / build (9.12, macOS-latest)

• The data constructor ‘FSN.Added’ should have 3 arguments, but has been given 4
rio $ $logInfo $ "Watched file added: " <> T.pack fp
return $ Right fp
FSN.Modified fp _ _ -> do
rio $ $logInfo $ "Watched file modified: " <> T.pack fp
return $ Right fp
#endif
_ -> do
rio $ $logInfo $ "Watched file unknown" <> T.pack mempty
return $ Left []
Expand Down
Loading