[Haskell-cafe] RE: [Haskell] Announce: Yi 0.3

gwern0 at gmail.com gwern0 at gmail.com
Thu Jan 31 15:07:40 EST 2008


On 2008.01.31 16:27:05 -0000, "Bayley, Alistair" <Alistair_Bayley at invescoperpetual.co.uk> scribbled 0.7K characters:
> > From: Thomas Schilling [mailto:nominolo at googlemail.com]
> > >
> > > So Yi works on Windows? hs-plugins was broken for Windows
> > for a while,
> > > so I'm wondering if this has been fixed too. Does Yi use
> > hs-plugins, or
> > > does it go straight down to ghc? (looking at the yi.cabal
> > file seems to
> > > indicate no dependency on hs-plugins)
> >
> > Correct.
> >
> > Does that mean you volunteer and report any problems of running Yi on
> > Windows? ;-)
>
> I'd love to, but JP has just indicated (privately) that it's broken on
> Windows, for other reasons.
>
> I was trying to establish whether it was worth my time to attempt to
> download Yi and GTK2HS and build them.
>
> Alistair

It probably isn't your time, but I think it's doable. If you grep for .Posix, you see:

> Yi/Dired.hs:import System.Posix.Files
> Yi/Dired.hs:import System.Posix.Types
> Yi/Dired.hs:import System.Posix.User
> Yi/Dired.hs:import Text.Regex.Posix
> Yi/UI/Vty.hs:import System.Posix.Signals         ( raiseSignal, sigTSTP )
> Yi/Search.hs:import Text.Regex.Posix.String  ( Regex, compExtended, > compIgnoreCase, compNewline, compile, execBlank )
> Yi/Buffer/Implementation.hs:import Text.Regex.Posix
> Yi/Eval.hs:import Text.Regex.Posix
> Yi/MkTemp.hs:import qualified System.Posix.Internals ( c_getpid )
> Yi/MkTemp.hs:        System.Posix.Directory.createDirectory dir ownerModes
> Yi/MkTemp.hs:getProcessID = System.Posix.Internals.c_getpid >>= return . > fromIntegral
> Yi/Editor.hs:import Text.Regex.Posix.Wrap    ( Regex )
> Yi/Buffer.hs:import Text.Regex.Posix.Wrap    (Regex)

All the mentions Text.Regex.Posix is not a problem, as regex-posix doesn't depend on the 'unix' package so far as I know.

If you wanted to, you could quietly remove Dired.hs, which would remove its dependencies on System.Posix.*, and the same goes for VTY.hs (not that you'd really want that on Windows anyway). MkTemp is built, but I don't believe it's actually used by anything (maybe Dired?). And that would be it, so far as I know.

But all that would be a lot of work, and Yi isn't mind-blowingly good, if you follow me.

--
gwern
Recon tors EOD MSNBC K3 NB Spoke MITM Crust filofax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080131/4c1b68bf/attachment.bin


More information about the Haskell-Cafe mailing list