Thus spoke [EMAIL PROTECTED]: > This does not seem to typecheck, since modeTable has type (Config -> ...) > and you pass a list to it. > (I see that my mail client dropped the <|> from your quote, but be sure I > refer to your original text)
Sorry, I was in a hurry and made a mistake. My yi.hs of course *did* compile. > I guess this should be fine: { modeTable = [AnyMode Haskell.cleverMode] > ++ modeTable defaultConfig } Unfortunately, it doesn't work :-( Same problems persist. > Otherwise, if you put the cleverMode first in the modeTable, it should be > ok. I think I did, but it still doesn't work. I'm really confused over what might be causing the trouble. And editing without support for indentation is really not my favorite task. Here's my current yi.hs. I stripped it of all unnecessary stuff in order to track down the problem: import Yi import Yi.Keymap.Vim (keymap) import Yi.Mode.Haskell as Haskell defaultUIConfig = configUI defaultConfig main :: IO () main = yi $ defaultConfig { modeTable = AnyMode Haskell.cleverMode : (modeTable defaultConfig) , defaultKm = keymap , configUI = defaultUIConfig { configWindowFill = '~' } } > It's possible that you don't run the code corresponding to your config; > I tend to use the -fhacking flag, as it disables the automatic recompile > stuff. You have to link HackerMain.hs to your config file. I think I should have ruled out this possibility. I usually run with the --recompile-force flag when I try out stuff. Besides, other changes to the yi.hs (like changing the keymap) did work. Curiously, it doesn't work with both the Emacs and Vim keymap right now. I had adjustBlock working with the Emacs keymap yesterday, but today the moon probably went out of alignment. But, with the Emacs keymap, I can use Tab to move the pointer from sol to where I'd expect it to be, but only after 'where', 'let in' and 'case x of' statements. From looking at the code, there is no reason for it *not* to work. And my repo corresponds exactly with the new bumped version of yi. Also, it really is the code I think it is, I just compiled in two tiny patches I darcs sent about half an hour ago. Thanks, Aleks
pgp5c8Fjvbgt3.pgp
Description: PGP signature