You are not logged in.

#1 2007-12-31 10:58:15

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

yi - a haskell editor http://haskell.org/haskellwiki/Yi

Hello,

can anyone pleas try to make a package for the editor yi, which is written in haskell?  I tried myself, but unfortunately the build instructions only say something like "built it like you would built any other cabal package", and I do not know how to do so.

http://haskell.org/haskellwiki/Yi

Thank you for your efforts.

Offline

#2 2008-01-03 15:08:19

Gustavo
Member
From: Brazil
Registered: 2006-07-04
Posts: 92

Re: yi - a haskell editor http://haskell.org/haskellwiki/Yi

Hello,

I think this will help you:

http://xmonad.org/intro.html

Build xmonad

xmonad is just another cabal package. Grab the latest release of xmonad from hackage.haskell.org, here, and then build as for other cabal packages:

    $ runhaskell Setup.lhs configure --user --prefix=$HOME
    $ runhaskell Setup.lhs build
    $ runhaskell Setup.lhs install --user

And that's it. Compiled, and ready to go.

Also, you might wanna check xmonad PKGBUILD in aur for more info smile

Last edited by Gustavo (2008-01-03 15:08:48)

Offline

#3 2008-01-04 16:34:30

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: yi - a haskell editor http://haskell.org/haskellwiki/Yi

I will try. But one of the dependencies of the newest darcs-version is GHC 6.8.2, and so I had to build that first. It works out of the box with the current PKGBUILD from ABS by changing md5sums and pkgver.

Offline

#4 2008-01-05 17:30:03

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: yi - a haskell editor http://haskell.org/haskellwiki/Yi

I made the following PKGBUILD

# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer:  <haawda@bertrand>
pkgname=yi-darcs
pkgver=20080501
pkgrel=1 
pkgdesc="The Haskell extensible Editor"
url="http://haskell.org/haskellwiki/Yi"
arch=('i686')
license=('GPL')
depends=()
makedepends=('ghc>=6.8.2' 'gtk2hs'  'darcs')
install=
source=(config.mk)
md5sums=('dbe2082a9d990d6549109356b85570d0')

_darcstrunk="http://code.haskell.org"
_darcsmod="yi"

build() {
  cd $startdir/src
  msg "Checking for previous build"
  # get the sources
  if [[ -d $startdir/src/$_darcsmod/_darcs ]]
  then
    msg "Retrieving missing patches"
    cd $_darcsmod
    darcs pull -a $_darcstrunk/$_darcsmod
  else
    msg "Retrieving complete sources"
    darcs get --partial --set-scripts-executable $_darcstrunk/$_darcsmod
  fi

  msg "Starting build"
  cd $startdir/src/$_darcsmod
  cp $startdir/src/config.mk $startdir/src/$_darcsmod
  runhaskell MkConfig.hs --frontend=gtk 
  # runhaskell Setup.hs clean 
#   runhaskell Setup.hs configure --prefix=/usr || return 1
#   runhaskell Setup.hs build || return 1
#   runhaskell Setup.hs register --gen-script
#   runhaskell Setup.hs unregister --gen-script
  # runhaskell Setup.hs copy --destdir=$startdir/pkg || return 1
  make all
  install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/BSD3
}

It gives a binary. When calling this binary I got the following error message:

[haawda@bertrand ]$ yi

<command line>:
    Could not find module `Yi.Debug':
      Use -v to see a list of the files searched for.

<interactive>:1:22:
    Failed to load interface for `Yi.Debug':
      Use -v to see a list of the files searched for.
yi: user error (Could not compile: Yi.Debug.initDebug ".yi.dbg")

[haawda@bertrand emacs-unicode]$ yi --as=emacs

<command line>:
    Could not find module `Yi.Debug':
      Use -v to see a list of the files searched for.

<interactive>:1:22:
    Failed to load interface for `Yi.Debug':
      Use -v to see a list of the files searched for.
yi: user error (Could not compile: Yi.Debug.initDebug ".yi.dbg")

[haawda@bertrand ]$ yi --as=emacs

Any suggestions?

Offline

Board footer

Powered by FluxBB