File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 2727$(target_dir ) :
2828 mkdir $@
2929
30- $(exe ) : $(shell find . unison -type f -name '* .hs') package.yaml stack .yaml
30+ $(exe ) : $(shell find . unison -type f -name '* .hs') $( shell find . unison -type f -name ' * .yaml')
3131 @echo $(exe )
3232 @echo $@
3333 stack build $(STACK_FLAGS ) share-api:share-api
Original file line number Diff line number Diff line change 11module Main where
22
3+ import Share.Env (withEnv )
4+ import Share.BackgroundJobs.Monad
5+ import UnliftIO
6+
37main :: IO ()
48main = do
9+ withEnv \ env -> runBackground env " share-task-runner" task
10+
11+ task :: Background ()
12+ task = do
13+ liftIO $ putStrLn " Hello from the task runner!"
514 pure ()
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ ghc-options:
3434
3535dependencies :
3636- base >= 4.7 && < 5
37+ - share-api
38+ - unliftio
3739
3840default-extensions :
3941 - ApplicativeDo
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ library
5757 ghc-options : -Wall -Werror -Wname-shadowing -Wno-type-defaults -Wno-missing-pattern-synonym-signatures -Wincomplete-uni-patterns -Widentities -Wredundant-constraints -Wpartial-fields -fprint-expanded-synonyms -fwrite-ide-info -O2 -funbox-strict-fields
5858 build-depends :
5959 base >= 4.7 && < 5
60+ , share-api
61+ , unliftio
6062 default-language : Haskell2010
6163
6264executable share-task-runner
@@ -97,5 +99,7 @@ executable share-task-runner
9799 ghc-options : -Wall -Werror -Wname-shadowing -Wno-type-defaults -Wno-missing-pattern-synonym-signatures -Wincomplete-uni-patterns -Widentities -Wredundant-constraints -Wpartial-fields -fprint-expanded-synonyms -fwrite-ide-info -O2 -funbox-strict-fields -threaded -rtsopts "-with-rtsopts=-N -A32m -qn2 -T"
98100 build-depends :
99101 base >= 4.7 && < 5
102+ , share-api
100103 , share-task-runner
104+ , unliftio
101105 default-language : Haskell2010
You can’t perform that action at this time.
0 commit comments