[xmonad] Can't use any of the contrib modules

Anthony Campbell ac at acampbell.org.uk
Mon Sep 19 10:49:08 CEST 2011


On 19 Sep 2011, Ivan Lazar Miljenovic wrote:
> On 19 September 2011 18:03, Anthony Campbell <ac at acampbell.org.uk> wrote:
> 
> > import XMonad
> >
> >    import XMonad.Layout.Tabbed
> >    import XMonad.Layout.Accordion
> >    import XMonad.Layout.NoBorders
> >
> >    mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTConf) ||| Accordion
> >
> >    main = xmonad $ defaultConfig { layoutHook = mylayoutHook }
> > -------------------------------------------------
> >
> > But recompiling gives an error:
> >
> > xmonad.hs:3:5: parse error on input `import'
> 
> What's above that?
> 
> If you're indenting all of your definitions, you need to indent the
> "import XMonad" line as well.
> 

Thank you - I am (Obviously!) completely ignorant of Haskell. I just
copied the example "as is".

I changed the indentation of the import lines but now I get errors lower
down in the script, e.g.

xmonad.hs:8:9: parse error on input `mylayoutHook'

I think this is something to do with indentation too, because changing
it gives different errors. But in spite of fiddling I can't get it to
work. Perhaps I'd better give up unless/until I learn some Haskell.

-- 
Anthony Campbell - ac at acampbell.org.uk 
Microsoft-free zone - Using Debian GNU/Linux 
http://www.acampbell.org.uk - sample my ebooks at
http://www.smashwords.com/profile/view/acampbell




More information about the xmonad mailing list