-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xmonad lib subdirectory #3
Comments
Not sure whether it is a good idea, but I would be interested too. In the meantime, I've followed this path. I've a branch of flycheck-hdevtools which looks for a file |
Firstly, it's worth noting that if you install the It should be possible to make -Steve |
So if your only requirement is to have the From here, it may be a bit off-topic, but I do not quite know where to post this: I've tried to extend I am still not sure in which direction to go from here:
|
Hello, Thanks for responding and checking out the issue.
xmonad configuration does not have a cabal file. There is a cabal file but that The -ilib is added by the xmonad executable when recompiling.
Oh, ok. Please let me know if I can provide more details. Thanks again |
Closing due to the lack of activity. |
Hello,
I need some advice on what would be the recommend way of dealing with the issue.
When editing xmonad.hs using flycheck-hdevtools, flycheck does not search the lib/ subdirectory for modules and throws the below error:
69 18 error Could not find module `XMonad.Util.DTrace'
Perhaps you meant
XMonad.Util.Image (from xmonad-contrib-0.12)
XMonad.Util.Replace (from xmonad-contrib-0.12)
XMonad.Util.Stack (from xmonad-contrib-0.12)
Use -v to see a list of the files searched for. (haskell-hdevtools)
Below is the relevant recompile command in xmonad:
-- | 'recompile force', recompile @~/.xmonad/xmonad.hs@ when any of the
...
...
recompile :: MonadIO m => Bool -> m Bool
recompile force = io $ do
dir <- getXMonadDir
let binn = "xmonad-"++arch++"-"++os
bin = dir </> binn
base = dir </> "xmonad"
err = base ++ ".errors"
src = base ++ ".hs"
lib = dir </> "lib"
libTs <- mapM getModTime . Prelude.filter isSource =<< allFiles lib
srcT <- getModTime src
binT <- getModTime bin
if force || any (binT <) (srcT : libTs)
then do
-- temporarily disable SIGCHLD ignoring:
uninstallSignalHandlers
status <- bracket (openFile err WriteMode) hClose $ \h ->
waitForProcess =<< runProcess "ghc" ["--make", "xmonad.hs", "-i", "-ilib", "-fforce-recomp", "-main-is", "main", "-v0", "-o",binn](Just dir)
Nothing Nothing Nothing (Just h)
----- relevant hdevtools commands
hdevtools check -g -Wall xmonad.hs
xmonad.hs:69:18:
Could not find module `XMonad.Util.DTrace'
Perhaps you meant
XMonad.Util.Image (from xmonad-contrib-0.12)
XMonad.Util.Replace (from xmonad-contrib-0.12)
XMonad.Util.Stack (from xmonad-contrib-0.12)
Use -v to see a list of the files searched for.
hdevtools check -g -Wall -g -ilib xmonad.hs
xmonad.hs:230:1: Warning:
Top-level binding with no type signature:
myLayoutHook :: .....
Any thoughts, please?
I need to add a parameter to hdevtools. Not sure if it is a good idea to have it as a flycheck-hdevtools variable?
Thanks
Joe
The text was updated successfully, but these errors were encountered: