I think two things are necessary in this case: 1. Upgrade GHC to get the GHC package to depend on the same Cabal as yi. 2. Reinstall the dependencies making sure mtl >= 2 is selected. Use "--constraint 'mtl >= 2.0.0'" as a parameter to cabal.
There might be a workaround to having to reinstall GHC. -Corey O'Connor coreyocon...@gmail.com http://inebriatedrobot.com/ On Fri, Mar 25, 2011 at 9:47 AM, Tony Miller <mcfiredr...@gmail.com> wrote: > Great work. After upgrading cabal and installing a couple > dependencies(monads-fd and derive) it seems I have almost all the > dependencies. Definitely a lot easier than the last time I tried to > build Yi. However something is still missing. Do I absolutely need the > haskell platform installed? Wouldn't upgrading ghc be sufficient? I > also get a bit of warnings. > > █▓▒░tony@pp░▒▓█ ~/src/yi/yi $ cabal configure > Warning: yi.cabal: This package requires Cabal version: >=1.10 > Warning: yi.cabal: Unknown fields: default-language (line 67) > Fields allowed in this section: > exposed-modules, exposed, buildable, build-tools, cpp-options, > cc-options, ld-options, pkgconfig-depends, frameworks, c-sources, > extensions, extra-libraries, extra-lib-dirs, includes, > install-includes, include-dirs, hs-source-dirs, other-modules, > ghc-prof-options, ghc-shared-options, ghc-options, hugs-options, > nhc98-options, jhc-options > Warning: yi.cabal: Unknown fields: default-language (line 316) > Fields allowed in this section: > executable, main-is, buildable, build-tools, cpp-options, > cc-options, ld-options, pkgconfig-depends, frameworks, c-sources, > extensions, extra-libraries, extra-lib-dirs, includes, > install-includes, include-dirs, hs-source-dirs, other-modules, > ghc-prof-options, ghc-shared-options, ghc-options, hugs-options, > nhc98-options, jhc-options > Warning: yi.cabal: Unknown fields: default-language (line 333) > Fields allowed in this section: > executable, main-is, buildable, build-tools, cpp-options, > cc-options, ld-options, pkgconfig-depends, frameworks, c-sources, > extensions, extra-libraries, extra-lib-dirs, includes, > install-includes, include-dirs, hs-source-dirs, other-modules, > ghc-prof-options, ghc-shared-options, ghc-options, hugs-options, > nhc98-options, jhc-options > Resolving dependencies... > Warning: yi.cabal: This package requires Cabal version: >=1.10 > Warning: yi.cabal: Unknown fields: default-language (line 67) > Fields allowed in this section: > exposed-modules, exposed, buildable, build-tools, cpp-options, > cc-options, ld-options, pkgconfig-depends, frameworks, c-sources, > extensions, extra-libraries, extra-lib-dirs, includes, > install-includes, include-dirs, hs-source-dirs, other-modules, > ghc-prof-options, ghc-shared-options, ghc-options, hugs-options, > nhc98-options, jhc-options > Warning: yi.cabal: Unknown fields: default-language (line 316) > Fields allowed in this section: > executable, main-is, buildable, build-tools, cpp-options, > cc-options, ld-options, pkgconfig-depends, frameworks, c-sources, > extensions, extra-libraries, extra-lib-dirs, includes, > install-includes, include-dirs, hs-source-dirs, other-modules, > ghc-prof-options, ghc-shared-options, ghc-options, hugs-options, > nhc98-options, jhc-options > Warning: yi.cabal: Unknown fields: default-language (line 333) > Fields allowed in this section: > executable, main-is, buildable, build-tools, cpp-options, > cc-options, ld-options, pkgconfig-depends, frameworks, c-sources, > extensions, extra-libraries, extra-lib-dirs, includes, > install-includes, include-dirs, hs-source-dirs, other-modules, > ghc-prof-options, ghc-shared-options, ghc-options, hugs-options, > nhc98-options, jhc-options > Configuring yi-0.6.3.0... > Warning: This package indirectly depends on multiple versions of the same > package. This is highly likely to cause a compile failure. > package yi-0.6.3.0 requires Cabal-1.10.1.0 > package ghc-6.12.3 requires Cabal-1.8.0.6 > package bin-package-db-0.0.0.0 requires Cabal-1.8.0.6 > package vty-4.2.1.0 requires mtl-1.1.0.2 > package regex-tdfa-1.1.3 requires mtl-1.1.0.2 > package regex-base-0.93.2 requires mtl-1.1.0.2 > package uniplate-1.5.1 requires mtl-2.0.1.0 > package monads-fd-0.2.0.0 requires mtl-2.0.1.0 > package hint-0.3.3.1 requires mtl-2.0.1.0 > package ghc-mtl-1.0.1.0 requires mtl-2.0.1.0 > package QuickCheck-2.4.0.1 requires mtl-2.0.1.0 > package MonadCatchIO-mtl-0.3.0.1 requires mtl-2.0.1.0 > setup: The package yi-0.6.3.0 requires the following languages which are not > supported by ghc-6.12.3: Haskell2010 > > > On Fri, Mar 25, 2011 at 6:48 AM, Jeremy Wall <jw...@google.com> wrote: >> On Fri, Mar 25, 2011 at 1:23 AM, Jeff Wheeler <wheel...@illinois.edu> wrote: >>> Hi all, >>> >>> I'm very excited to announce the first release of Yi since last >>> summer. It is relatively light on new features, but it finally should >>> compile nicely on friendly machines. This means, for the most part, >>> machines with the latest Haskell Platform installed. (Windows, >>> unfortunately, has not been tested all that much. See details below, >>> though, for install info.) >> >> Sweet!!! time to start hacking some more. I've got a half-finished >> java syntax file in the works :-) >> >>> >>> ## What's new? >>> >>> * New vte UI. This is a terminal UI inside a GUI, much like gvim. It >>> depends on Gtk2Hs for the GUI, and then launches the vty UI inside the >>> terminal. >>> * Compatibility with the latest Haskell Platform release >>> * Start yi-contrib package. We intend to move more stuff here, to >>> clean up the core yi package. >>> * We're now on GitHub (and mirrored on Google Code)! See below for info. >>> >>> ## What's Yi? >>> >>> Yi is a text editor written in Haskell and extensible in Haskell. The >>> long-term goal of the Yi project is to provide the editor of choice >>> for Haskell programmers. >>> >>> Yi now works relatively well in the terminal, using the vty package, >>> and also has Gtk frontends using vte (which interfaces with the >>> terminal interface) and a Pango frontend. There is also a Cocoa >>> frontend under (slow) development. >>> >>> ## Installation >>> >>> Using cabal install: >>> >>> $ cabal update >>> $ cabal install yi >>> >>> The default UI depends on the vty package, which will only compile >>> with the ncurses development headers available. On Ubuntu, you need to >>> install the `libncurses5-dev` package. >>> >>> On Windows, you'll need to disable the default vty terminal UI, and >>> use a Gtk UI instead (the vte UI requires vty, so you can't install >>> that either): >>> >>> $ cabal install yi -f-vty -fpango >>> >>> (Windows support is not well-tested, though.) >>> >>> Optionally also install the contrib package: >>> >>> $ cabal install yi-contrib >>> >>> ## Features >>> >>> * A purely functional editor core >>> * Key-bindings written as parsers of the input >>> * Emacs, Vim and (partial) Cua emulations provided by default >>> * Console front-end (Gtk2Hs and Cocoa front-ends in development) >>> * Static configuration (XMonad style) for fast load >>> * Haskell support: >>> * Lexical highlighting and (unicode-based) beautification. >>> * Layout-aware parenthesis-matching >>> * Auto-indentation >>> * cabal-build within the editor >>> * Syntax highlighting for a number of other languages (latex, python, perl, >>> ...) >>> >>> ## More Info >>> >>> Read the README [1] on GitHub for more information. The source code >>> [2] is also hosted there. >>> >>> ## Credits >>> >>> This release is brought to you by: >>> >>> * Alexey Levan >>> * Gwern Branwen >>> * Issac Trotts >>> * Jean-Philippe Bernardy >>> * Jeff Wheeler >>> * Jeremy Wall >>> * Maciej Piechotka >>> * Malte Sommerkorn >>> >>> and all the contributors to the previous versions. >>> >>> Also, Yi would not exist without all the work put into the Haskell platform. >>> >>> [1] https://github.com/yi-editor/yi/blob/master/README.md >>> [2] https://github.com/yi-editor/yi >>> >>> -- >>> Jeff Wheeler >>> >>> Undergraduate, Electrical Engineering >>> University of Illinois at Urbana-Champaign >>> >>> -- >>> Yi development mailing list >>> yi-devel@googlegroups.com >>> http://groups.google.com/group/yi-devel >>> >> >> -- >> Yi development mailing list >> yi-devel@googlegroups.com >> http://groups.google.com/group/yi-devel > > -- > Yi development mailing list > yi-devel@googlegroups.com > http://groups.google.com/group/yi-devel -- Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel