After I managed to update my GHC to 6.10.1 (I couldn't compile yi with
old one after the base-4 patch) I still get compile error:
Shim/CabalInfo.hs:24:19:
Ambiguous type variable `e' in the constraint:
`CE.Exception e'
arising from a use of `CE.try' at Shim/CabalInfo.hs:24:19-46
Probable fix: add a type signature that fixes these type variable(s)
I attach a fix that worked for me. (It's just my wild guessing of types,
I'm not sure it's correct fix).
Cheers,
--
Krzysiek
--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---
Tue Dec 2 15:29:32 CET 2008 Krzysztof Goj <[EMAIL PROTECTED]>
* It didn't compile (it complained about ambiguity)
New patches:
[It didn't compile (it complained about ambiguity)
Krzysztof Goj <[EMAIL PROTECTED]>**20081202142932] hunk ./Shim/CabalInfo.hs 24
recurseDir findCabalFile dir -- "/bar/foo/s.hs" -> "/bar/foo"
where findCabalFile dir = do
logS $ "looking in: " ++ dir
- pdfile <- CE.try (findPackageDesc dir)
+ pdfile <- CE.try (findPackageDesc dir) :: IO (Either CE.IOException
(Maybe FilePath))
case pdfile of
Right (Just f) -> return . Just $ dir </> f
_ -> return Nothing
Context:
[Better word and WORD motions for Vim keymap.
Krzysztof Goj <[EMAIL PROTECTED]>**20081202132813]
[doc
[EMAIL PROTECTED]
[Yi/Users/Gwern.hs: +shorter binding for gotoLn
[EMAIL PROTECTED]
Ignore-this: 5defc56344c3e1c61bd602d192e06af3
I find the default Emacs binding of M-g g tedious; why not just M-g?
]
[doc
[EMAIL PROTECTED]
[make Accessor instance of Category
[EMAIL PROTECTED]
[use Control.Category
[EMAIL PROTECTED]
[Yi.Keymap.Emacs: +standard emacs M-; binding
[EMAIL PROTECTED]
Ignore-this: 5abf2d7154acfdcce44286f34ec238b9
]
[update to base>=4; replace all Control.Exception with Control.OldException
[EMAIL PROTECTED]
Ignore-this: 205b7c23a4ffcc16b8612d0b4edc9352
]
[better support for vivid colors
[EMAIL PROTECTED]
[Main.hs: minor indent
[EMAIL PROTECTED]
Ignore-this: b53fd55beb556c92b6bba9ee4a49cd61
]
[added C-w and C-u to ex mode
Aleksandar Dimitrov <[EMAIL PROTECTED]>**20081201103414]
['ZZ' closes window, not editor, 'ZQ' == ':q!'
Aleksandar Dimitrov <[EMAIL PROTECTED]>**20081201103311]
[bump version number
[EMAIL PROTECTED]
[TAG 0.5.2
[EMAIL PROTECTED]
Patch bundle hash:
d2edf85689e8c94caf35203b150f1b3945af1e74