Experimental IRC log happs-2007-12-28

Available formats: content-negotiated html turtle (see SIOC for the vocabulary)

Back to channel and daily index: content-negotiated html turtle

These logs are provided as an experiment in indexing discussions using IRCHub.py, Irc2RDF.hs, and SIOC.

11:40:11<jz87>hi I'm having problems running HAppS-Begin
11:40:31<jz87>even though I installed all the modules, it says it can't find HApps.Server.State
11:40:47<alexj>you are not using recent versins.
11:40:49<alexj>I think.
11:40:59<jz87>pulled it from darcs just now
11:41:06<jz87>and I installed ghc 6.8.1
11:41:10<jz87>well 6.8.2
11:41:18<jz87>I pulled everything new just in case
11:42:06<jz87>is the latest version 0.9.1?
11:43:53<alexj>ok then HAppS-Begin needs to catch up.
11:44:00<alexj>working on cleaning up the website and docs now.
11:44:14<alexj>trying to build happs-begin to see what happens.
11:45:19<alexj>building from scratch now.
11:45:49<alexj>actually I think HAppS-Begin is not up to date.
11:47:12<jz87>ok
11:47:32<jz87>yeah, trying to learn HAppS is really frustrating
11:47:44<alexj>working on site and docs now.
11:47:47<alexj>trying to make it better.
11:47:48<jz87>thanks
11:48:01<jz87>isn't there any system for syncing the versions of the various components
11:48:22<alexj>yeah, now there is.
11:48:44<jz87>I tried using searchpath
11:48:54<jz87>and it won't even finish wish haxml
11:48:59<jz87>it gets a parsing error
11:49:13<alexj>really that is interesting. can you give me the actual example?
11:49:18<alexj>what is wish?
11:49:49<alexj>searchpath has been dramatically overhauled recently.
11:49:56<alexj>so am looking for failure examples.
11:50:30<jz87>.sp-cache/http_searchpath.org-default.map.dir/http_www.haskell.org-HaXml-HaXml-1.13.3.tar.gz/HaXml-1.13.3/src/Text/XML/HaXml/Parse.hs:32:1:
11:50:30<jz87> lexical error at character 'i'
11:51:05<jz87>is searchpath meant to be a haskell equivalent of maven?
11:52:01<alexj>I don't know maven.
11:52:09<alexj>can you give me the command line?
11:52:18<alexj>and how recent was this searchpath?
11:52:51<alexj>I build with haxml all the time without problems.
11:53:00<jz87>this search path
11:53:03<jz87>I just grabbed it
11:53:05<Igloo>That sounds like -cpp is missing from the ghc commandline
11:53:10<jz87>I've been trying to build a web application
11:53:16<jz87>and I tried using scala and liftweb
11:53:44<jz87>and I thought I'd compare it to happs
11:54:10<jz87>.sp-cache/http_searchpath.org-default.map.dir/http_www.haskell.org-HaXml-HaXml-1.13.3.tar.gz/HaXml-1.13.3/src/Text/XML/HaXml/Parse.hs:32:1:
11:54:10<jz87> lexical error at character 'i'
11:54:13<jz87>oops
11:54:18<jz87>sp runhaskell -ihaskell haskell/Main.hs
11:54:31<jz87>this is in the HAppS-Begin directory
11:55:00<alexj>thats weird. I am using the current searchpath and it works.
11:55:21<alexj>searchpath outputs the actual command line it is using. can you paste that here?
11:55:33<jz87>http://searchpath.org/
11:55:37<jz87>I downloaded it from here
11:55:43<jz87>just now
11:55:50<alexj>jz87 ok. good.
11:55:56<alexj>can you paste the command line?
11:56:07<jz87>for running sp?
11:56:47<alexj>can you paste the output from running sp?
11:57:36<jz87>it's pretty long
11:57:40<jz87>let's see
11:58:40<jz87>ok, that was a bad idea
11:58:46<alexj>jz87: I just need the first 5 lines.
11:58:58<jz87>Conf {hsFiles = ["haskell/Main.hs"], modLocs = [], mapLocs = [MapDir "haskell",MapURI "http://searchpath.org/default.map"], cargs = [], cacheDir = ".sp-cache", exe = "runhaskell", maxAge = 1209600, cpp = True, glasgow = False, start = 1198843066, verbose = 0, target = "", useDefaultMap = True, runArgs = Nothing}
11:58:58<jz87><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
11:59:08<alexj>ok thats good.
11:59:17<alexj>confused why it is not working.
11:59:23<alexj>cpp=True
11:59:28<alexj>can you give me the next 5 lines.
11:59:29<alexj>?
12:01:04<jz87>well
12:01:08<jz87>there isn't a next 5 lines
12:01:11<jz87>it's just a mass of stuff
12:01:13<jz87>"runhaskell -ihaskell -i.sp-cache/http_searchpath.org-default.map.dir/darcs_get_--partial_http_happs.org-HAppS-HAppS-Server/HAppS-Server/src -i.sp-cache/http_searchpath.org-default.map.dir/darcs_get_--partial_http_happs.org-HAppS-HAppS-Server/HAppS-Server/src -i.sp-cache/http_searchpath.org-default.map.dir/darcs_get_--partial_http_happs.org-HAppS-HAppS-Data/HAppS-Data/src -i.sp-cache/http_searchpath.org-default.map.dir/darcs_get_--partial
12:01:13<jz87>["runhaskell","-ihaskell","-i.sp-cache/http_searchpath.org-default.map.dir/darcs_get_--partial_http_happs.org-HAppS-HAppS-Server/HAppS-Server/src","-i.sp-cache/http_searchpath.org-default.map.dir/darcs_get_--partial_http_happs.org-HAppS-HAppS-Server/HAppS-Server/src","-i.sp-cache/http_searchpath.org-default.map.dir/darcs_get_--partial_http_happs.org-HAppS-HAppS-Data/HAppS-Data/src","-i.sp-cache/http_searchpath.org-default.map.dir/darcs_ge
12:01:32<jz87>and after that I get
12:01:33<jz87>.sp-cache/http_searchpath.org-default.map.dir/http_www.haskell.org-HaXml-HaXml-1.13.3.tar.gz/HaXml-1.13.3/src/Text/XML/HaXml/Parse.hs:32:1:
12:01:33<jz87> lexical error at character 'i'
12:01:55<alexj>well thats weird. -cpp is not being turned on.
12:02:49<alexj>are you sure you are building with a recent searchpath?
12:02:53<jz87>I get the same error on both windows and OS X
12:03:00<alexj>(fyi, happs-begin is indeed not working)
12:03:15<jz87>I get search path v0.91 when I run --help
12:03:31<jz87>I was also going to ask, is there any documentation for happs?
12:03:34<jz87>like the list of functions?
12:03:36<alexj>how recent did you pull searchpath and did you pull the tagged repo or the current.
12:03:41<jz87>and packages?
12:03:48<jz87>I pulled searchpath about an hour ago
12:03:50<alexj>jz87, part of my agenda right now is overhauling the website and doing that sort of thing.
12:03:57<jz87>I downloaded it from the website
12:03:57<Igloo>Looking at http://searchpath.org/searchpath/SearchPath.hs the alue of cpp doesn't seem to be used
12:04:03<Igloo>s/alue/value/
12:04:21<Igloo>-cpp will only be used (via exts) if glasgow = True AFAICS
12:04:47<alexj>ah figured it out!
12:04:54<alexj>igloo: I guess you did too.
12:05:04<alexj>you need runghc not runhaskell
12:05:19<alexj>sp runghc will work. sp runhaskell will not.
12:05:43<alexj>this is the fault of haxml, but using runghc will solve this particular issue.
12:05:45<jz87>what's the difference between them?
12:06:24<alexj>searchpath automatically adds a bunch of ghc extensions to the command line if the compiler used is ghc, ghci, or runghc.
12:06:43<alexj>you can get the same effect with runhaskell by using: sp runhaskell -cpp etc.
12:07:07<alexj>the reason I am blaming haxml is because it is bad practice not to have pragmas in the code for this sort of thing.
12:07:08<jz87>ah
12:07:26<alexj>this particular bad practice is sufficiently common that I added the automatic insertion of a bunch of flags to the default behavior of searchpath.
12:07:38<Igloo>SearchPath also looks buggy for not using -cpp when it says it's going to, though
12:08:02<Igloo>Which would have also worked around this HaXml deficiency
12:08:03<alexj>yeah, I just probably hide the conf because that is internal use.
12:08:11<alexj>ok will fix hold on.
12:08:36<jz87>I've been meaning to write some larger projects in haskell
12:08:52<jz87>what do you use to build whole projects?
12:09:08<jz87>is there a build system for haskell like Ant or Maven?
12:09:17<alexj>ok pushed the fix.
12:09:56<alexj>searchpath and cabal are both intending to be build systems.
12:10:21<alexj>what features do you want that searchpath is not providing?
12:10:31<jz87>well it's not features
12:10:38<alexj>ok what behavior?
12:10:39<jz87>it's just I don't really know how to use them
12:10:49<jz87>since there isn't a lot of documentation
12:11:02<jz87>basically, if I write a bunch of haskell source files
12:11:05<jz87>that comprise an application
12:11:07<alexj>sp now has some docs.
12:11:13<jz87>and they need to be compiled together
12:11:15<alexj>but probably not enough.
12:11:28<jz87>rather than me typing a ton of stuff at the commandline everytime I want to compile
12:11:39<alexj>sp ghc --make -o Program.exe Main.hs
12:11:44<alexj>thats it.
12:11:56<alexj>sp and ghc take care of module chasing.
12:11:58<jz87>ah
12:12:02<jz87>ok
12:12:20<jz87>where would I find documentation for happs and sp?
12:12:27<jz87>there isn't any on the website except a few tutorials
12:12:38<alexj>type sp at the command line and you get the usage info.
12:12:40<jz87>is there a hierarchical library style documentation for happs?
12:13:00<alexj>I am overhauling happs.org right now.
12:13:12<alexj>so hopefully we will be able to provide better docs soon.
12:13:22<alexj>in the case of sp, what could I have done to make that clearer?
12:13:54<jz87>you mean how to use it?
12:14:24<alexj>yes.
12:14:48<jz87>ah, on the website
12:14:55<jz87>all the documentation is bunched into a textarea
12:15:00<jz87>I didn't see it
12:15:15<jz87>it's rendered pretty small
12:15:53<jz87>I think if you just pasted it into a pdf or something it would be easier to read
12:16:04<alexj>ok will try that.
12:16:06<jz87>or just provide a zip
12:16:12<jz87>with search path and the pdf together
12:16:13<alexj>provide a zip of?
12:16:21<jz87>this way when people download it, the documentation comes with the program
12:16:42<alexj>it automatically pulls the docs from the website when you type sp at the command line.
12:16:51<alexj>try typing sp without any arguments.
12:17:09<jz87>ah ok
12:17:17<alexj>I guess that wasn't clear.
12:17:31<alexj>adding some usage examples to the website now.
12:17:57<jz87>can I try the HAppS-Begin package again?
12:18:03<jz87>is that up to date now?
12:18:18<alexj>happs-begin is still broken.
12:18:43<alexj>the better examples are in HAppS-Server/Examples
12:18:49<alexj>those all work correctly.
12:19:10<alexj>AllIn.hs touches most of HAppS.
12:19:57<jz87>ok
12:20:01<jz87>I'll take a look in thre then
12:20:18<jz87>so the begin package is purely examples?
12:20:27<jz87>I don't actually need it to build happs applications right
12:20:42<alexj>correct.
12:28:32<jz87>I just tried to run sp ghc --make -o httpNoState.hs in the examples directory
12:28:51<jz87>and it downloaded all the HAppS modules even though i already installed them
12:29:01<jz87>and then it gave an error saying it ca't find HAppS.StdMain
12:29:21<alexj>AllIn and the stuff in the set directory are current.
12:29:35<jz87>so httpNoState is out of date?
12:29:41<alexj>yes.
12:29:44<jz87>ok
12:29:57<alexj>we did a massive change to stuff in recent past and I am now trying to put it all back together.
12:30:15<jz87>ok
12:30:19<jz87>allin doens't work either
12:30:36<jz87>[82 of 82] Compiling Main ( AllIn.hs, AllIn.o )
12:30:36<jz87>AllIn.hs:5:28: Module `HAppS.Server' does not export `Data'
12:30:45<alexj>?
12:30:49<alexj>thats interesting.
12:30:59<alexj>oh that was the last fix before christmas.
12:31:13<jz87>so is that out of date?
12:31:26<alexj>hold on. I thought that was working.
12:32:04<jz87>is there some place I can post the stuff I learn about happs
12:32:24<Saizan>it seems you just need to remove "hiding (Data)" from that line
12:32:30<jz87>nvm, I guess I'll just blog about it
12:32:32<jz87>ah
12:33:32<alexj>just pushed fix for AllIn
12:33:32<jz87>ok that worked
12:33:34<jz87>thanks
12:37:04<alexj>jz87: just pushed usage examples to searchpath homepage
12:37:13<alexj>does that help?
12:38:07<jz87>let me check
12:38:24<jz87>yeah
12:38:27<jz87>I think that helps
12:38:39<jz87>but I have a question
12:38:56<jz87>why does sp try to download the happs modules even though I have them installed already
12:39:09<jz87>is it because sp and cabal doesn't talk to each other?
12:39:22<jz87>does sp build its own map separate from cabal?
12:39:25<alexj>sp does not talk to cabal.
12:39:30<jz87>ah I see
12:39:39<jz87>so it doesn't know about the packages I installed with cabal
12:39:44<alexj>correct.
12:39:54<jz87>so if I wrote a package
12:39:58<jz87>and it's on my hard drive
12:40:12<jz87>and it needs to be compiled with my current project
12:40:24<jz87>how would I use sp to build my project?
12:43:22<alexj>I only use sp.
12:43:46<alexj>oops not sure I understand the question.
12:43:51<jz87>I meant
12:43:55<jz87>let's so I break up my project
12:43:58<jz87>into different modules
12:44:02<jz87>like you did with Happs
12:44:12<alexj>see http://searchpath.org/default.map
12:44:24<alexj>you can pass your own mapfiles on the command line.
12:44:52<jz87>so I just pass it a local path?
12:45:08<jz87>like if I wrote a package JZ.Something
12:45:31<jz87>I would add a line like JZ.Something ~/haskell/jz/something/src
12:45:36<jz87>?
12:49:01<alexj>well if it is in your local file system, you might just pass -i ~/haskell/jz/something/src on the command line and not worry about a mapfile.
12:49:10<alexj>if you have a bunch of these then you probably want a mapfile.
12:49:27<jz87>yeah, I'm thinkinf of when I have a bunch of them
12:49:37<jz87>basically I'm looking for a build system
12:49:46<alexj>so then you put all the things you want in a mapfile.
12:49:47<jz87>so I don't have to type a ton of build paths on the cmdline everytime
12:50:08<jz87>so sp accept local file system paths in addition to url?
12:50:51<alexj>it only handles urls, tgz files at urls, and repo commands.
12:51:05<Saizan>alexj: couldn't sp check ghc-pkg for yet installed packages? or the point is to be always using the latest sources?
12:51:07<alexj>I suppose I could add "cp" as a repo command and then it would have the right bevhavior.
12:51:40<jz87>yeah I was wondering that also
12:51:46<jz87>because it's loading everything from the web
12:51:53<jz87>everytime I try to build a different package
12:53:10<alexj>jz87: searchpath supports pulling from arbitrary darcs/svn etc repos. so you can put the repos in your map file.
12:53:26<alexj>I just added "cp" as a version control system, so you can use that as well.
12:53:30<jz87>so I check it into svn first
12:53:35<jz87>and it will pull it from svn?
12:53:46<jz87>by the wya
12:53:47<alexj>yes.
12:53:52<jz87>I'm running allin right now
12:53:57<jz87>and when i go to localhost:8000
12:54:00<jz87>I get a allin: getNameInfo: does not exist (ai_family not supported)
12:54:05<jz87>what does that mean?
12:54:33<alexj>you are on on a mac and there is a bug in mac sockets or ghc (not sure which), but your mac is using IPv6 and that is not supported yet.
12:54:39<jz87>oh
12:54:42<alexj>the workaround is to use 127.0.0.1
12:54:48<jz87>ok
12:54:51<alexj>I discovered that one yesterday.
12:55:21<jz87>ok
12:55:26<jz87>I get no suitable handler found
12:55:27<jz87>for allin
12:55:33<jz87>is that the right behavior?
12:55:38<alexj>Saizan: searchpath could to a ghc-pkg. I just haven't implemented that.
12:55:51<alexj>AllIn is a code example not a running example.
12:55:58<alexj>not sure it has any interesting behavior.
12:56:05<jz87>ok
12:58:15<jz87>what's the current best way to find out what functions re available from happs?
12:58:19<jz87>is it just to look at the source code?
12:58:40<alexj>yes
12:59:31<earthy>that ... sucks.
13:00:11<earthy>anyway, time to try simpleHttp out
13:01:59<alexj>earthy: yeah it does.
13:02:05<alexj>hoping people help out.
13:02:13<earthy>you guys accept patches? ;)
13:02:23<alexj>earthy: yes!
13:02:33<jz87>well first you need a critical mass of people who understands HAppS
13:02:37<alexj>jz87: just pushed new searchpath.org website.
13:02:41<alexj>is that clearer?
13:02:47<earthy>right. then I'm going to do something quite similar to what I did for Doaitse Swierstra
13:02:53<earthy>document what I use. ;)
13:02:55<jz87>I've been trying to learn HAppS for a yer now
13:02:57<jz87>year
13:03:03<jz87>and it's just been impossible
13:03:03<alexj>jz87: its also been a moving target.
13:03:09<alexj>yes very hard.
13:03:12<jz87>yeah, I know
13:03:22<alexj>time to fix that now that we have more stable apis.
13:03:29<jz87>I wouldn't be able to help even if I wanted to
13:03:39<jz87>and I know there are a lot of people in the same boat as me
13:03:42<alexj>yup.
13:03:51<earthy>why doesn't HaXml 1.19 work?
13:04:02<alexj>earthy, are you using runhaskell?
13:04:05<alexj>or runghc?
13:04:09<earthy>runhaskell
13:04:16<earthy>but the cabal file states it won't work
13:04:32<earthy>at least in the 0.9.1 thingy I've got here... downloaded last week
13:04:32<alexj>earthy, are you using searchpath?
13:04:35<earthy>nope
13:04:39<earthy>intend not to
13:04:52<alexj>earthy: how come?
13:04:55<earthy>(as I develop offline quite often)
13:05:11<earthy>the gf's parents don't have internet access...
13:05:21<alexj>earthy: then you just need a local mapfile to localcopies of code.
13:05:27<earthy>'ah'
13:05:51<earthy>and this was documented where? :P
13:06:30<earthy>but, honestly, is using cabalized happs not supported at all then?
13:06:38<earthy>or is it merely deemed too much work?
13:06:50<alexj>earthy: it is supported but not as much.
13:07:08<alexj>it just requires people submitting patches to the cabal file.
13:07:16<earthy>ah
13:07:18<earthy>'kay
13:07:29<earthy>'cause I think it's neater.
13:07:35<alexj>earthy: not sure where to document that you can have a local copy of the mapfile.
13:07:39<alexj>it is in the usage.
13:07:55<alexj>-i <localfile>
13:08:04<alexj>jz87: does the new searchpath.org website help?
13:08:09<earthy>yeah, but you also need --no-default-map
13:11:40<alexj>earthy: have not tested. I think it still works even if you don't put --no-default-map. it just won't use stuff from that map if it is not available.
13:12:22<jz87>yeah
13:12:43<alexj>earthy: I think it just gives you a warning.
13:12:51<alexj>earthy: you can pass multiple mapfiles.
13:13:00<alexj>jz87: thanks
13:13:04<jz87>you should also explain
13:13:10<jz87>the map file thing
13:13:20<jz87>with local filesystem
13:13:21<jz87>paths
13:13:53<alexj>jz87: is the usage info not sufficient?
13:14:14<alexj> -i <localFile> Add the local map file to the set of -idirectories
13:14:15<jz87>well if I want to use sp to build my own packages
13:14:17<alexj>?
13:14:47<alexj>jz87: not sure where to do that.
13:14:48<jz87>I would have to modify the map file
13:15:04<alexj>jz87: you would have to add your own mapfile to the command line.
13:15:06<jz87>and add the local src directories to my local copy of the map file right?
13:15:10<alexj>you don't have to modify.
13:15:16<alexj>searchpath supports multiple maps files.
13:15:21<jz87>oh
13:15:26<jz87>so I create a new map file
13:15:32<jz87>referencing my local source dirs
13:15:37<jz87>and use -i?
13:16:13<jz87>is the argument to -i the mapfile or a source directory?
13:16:39<alexj>either
13:16:45<jz87>ok
13:17:17<jz87>yeah I think adding this information would help
13:17:21<earthy>actually, I'd definitely use --no-default-map since sometimes I'm still online on my excessively priced mobile data plan
13:17:21<alexj>ghc interprets -i as adding another directory in which to find modules.
13:17:33<alexj>earthy: are you in europe?
13:17:37<earthy>ACTION nods
13:17:43<alexj>ah ok.
13:18:22<alexj>jz87: would you mind taking a shot at editing searchpath usage info to communicate the stuff you want to know?
13:18:38<jz87>how would I edit it?
13:18:38<alexj>darcs get http://searchpath.org/searchpath
13:18:49<alexj>edit the usage file and send me a patch.
13:18:56<alexj>or anything else.
13:19:13<alexj>the usage file is usage.txt
13:19:17<jz87>how do I send a patch?
13:19:25<alexj>do you know how to use darcs?
13:19:28<jz87>I've only used darcs to pull stuff
13:19:34<jz87>I've never uploaded anything
13:19:46<earthy>darcs send
13:19:47<alexj>darcs record
13:19:58<alexj>darcs send -o file.patch
13:20:19<alexj>darcs send -o file.patch http://searchpath.org/searchpath
13:20:39<alexj>then email me the patch file.
13:20:49<jz87>ok
13:21:23<Saizan>earthy: HaXml changes api after 1.13, that's why the cabal file is like that
13:21:43<earthy>saizan: guessed it was something like that
13:22:36<Saizan>earthy: if you use haddock 2.0 you can build the haddock doc for all of happs, not that there's very much in it, but at least you can get a list of modules/functions
13:22:57<earthy>koshka:~ arthurvl$ haddock --version
13:22:57<earthy>Haddock version 0.8, (c) Simon Marlow 2006
13:22:59<earthy>drat. :)
13:23:15<Saizan>darcs get http://code.haskell.org/haddock
13:23:23<earthy>yeayeah
13:23:27<earthy>I know how to update
13:23:46<earthy>I just want this to start working soonish and not have to chase my tail all afternoon
13:24:01<alexj>jz87: i just pushed a change to the usage info.
13:24:06<alexj>so pull that before editing.
13:25:03<earthy>Tested-With: GHC==6.6.1
13:25:10<earthy>Build-Depends: containers
13:25:13<earthy>say what?
13:25:49<alexj>earthy: is that the cabal file for haxml?
13:25:56<earthy>Name: HAppS-Begin
13:26:02<earthy>Version: 0.9.1
13:26:10<alexj>earthy: ah ok well happs-begin is not working right now.
13:26:15<earthy>ah. 'kay. :)
13:26:17<Saizan>yeah, Tested-With is not updated :)
13:26:19<earthy>I was wondering. :)
13:27:33<earthy>okay. I'm fucked.
13:27:49<earthy>HAppS doesn't work at all with GHC 6.6.1 anymore, right?
13:27:50<Saizan>fucked?
13:28:14<Saizan>you need 6.8.2
13:28:30<earthy>yah. right.
13:28:48<earthy>and all I really need is a simple httpd to serve get requests, written in haskell
13:29:19<Saizan>there's one in a paper of Simon Marlow :)
13:29:25<jz87>so would a line referencing local src dir be like
13:29:37<jz87>My.Package ~/haskell/src
13:29:39<jz87>?
13:29:41<earthy>saizan: yeah, I think that might be my best bet. :P
13:29:48<earthy>jz87: yup
13:34:07<alexj>jz87: no that is not supported yet, but will support it now.
13:34:24<alexj>the way it is supported now is as a repo cmd
13:34:59<alexj>"cp -r ~/haskell/src foo"
13:35:08<alexj>or if you don't want a copy...
13:35:29<alexj>"ln -s ~/haskell/src foo"
13:36:05<alexj>does that make sense?
13:38:12<jz87>yeah
13:38:35<jz87>let me send you my patch
13:38:49<jz87>hmm
13:38:52<alexj>fyi, I just pushed support for -ln and -cp into the live repo.
13:39:02<jz87>your email isn't listed on the happs website
13:39:14<alexj>it is on the searchpath website.
13:39:45<jz87>ah ok
13:39:50<alexj>searchpath<nospam>@ happs.org
13:40:13<alexj>jz87: if you want to modify the index.html page to make it clearer, that would be cool too.
13:40:42<jz87>wait
13:40:47<jz87>is nospam actually part of the email?
13:41:02<jz87>I thought that was just to fool spam bots
13:41:07<alexj>yes.
13:41:14<alexj>not sure if this irc chat is logged
13:41:23<alexj>so don't want to put it in the clear either
13:41:28<jz87>ah I see
13:41:29<jz87>ok
13:41:30<alexj>in fact this irc is logged.
13:41:44<jz87>sent
13:42:00<jz87>if only haskell libraries had better documentation
13:42:09<jz87>I've been trying to write some real application si haskell
13:42:25<jz87>and it's hard because of the libraries keep on breaking and the documentation is almost always out of date
16:39:53<alexj>fyi, just pushed support in searchpath for ; in quoted commands in module maps. so now you can download a package and build it in place.
16:40:08<alexj>haven't tested.
16:40:14<alexj>saizan: you here?
17:16:56<guenni> hi
17:18:19<guenni>alexj: sry, hope you don't mind me asking, but I've seen your presentation and wonder if you're American or British, I just couldn't tell?
17:21:04<alexj>very american. audio quality must not be very good.
17:21:06<guenni>thx
17:21:06<guenni>No, it was alright, but I'm German myself and that was an accent I wasn't familiar with
18:53:13<eelco>Hmm, anyone familiar with this error?
18:53:16<eelco>src/HAppS/State/Transaction.hs:264:52:
18:53:16<eelco> Warning: Defined but not used: `ev'
18:53:16<eelco>/usr/local/lib/HAppS-Data-0.9.1/ghc-6.8.2/HAppS/Data/Xml/Base.hi
18:53:16<eelco>Declaration for lvl145:
18:53:16<eelco> Iface type variable out of scope: m
18:53:18<eelco>Cannot continue after interface file error
18:54:57<alexj>you probably need to wip your *.hi files
18:55:01<alexj>what ver ghc?
18:55:07<eelco>6.8.2
18:55:07<eelco>how do i 'wip *.hi files'? ;)
18:55:40<alexj>wipe
18:55:49<alexj>rm usually.
18:58:52<eelco>hmm, not doing the trick
19:02:31<eelco>everything is freshly build btw, just got ghc 6.8.2 working today
19:02:31<eelco>built*
19:08:48<eelco>getting sh*tloads of warnings, i suspect the code is in flux atm?
19:11:12<Saizan>warning are innocous most of the time
19:11:12<Saizan>alexj: called?
19:11:45<alexj>Saizan: yes, wanted briefly to discuss using chkpkg with searchpath.
19:13:19<Saizan>what do you mean with "chkpkg"?
19:13:39<alexj>check whether a package is installed to avoid downloading it.
19:14:53<Saizan>ok, installed you mean with ghc-pkg? if so it's a bit hard since searchpath doesn't know about packages but only modules i think?
19:16:31<eelco>Saizan: that's why they're called warnings, right? ;) it's mostly about unused code
19:18:04<Saizan>eelco: yeah, still getting that error on Base.hi? even after deleting it?
19:19:20<alexj>saizan. yes that was my assumption.
19:20:44<eelco>Saizan: when i delete it, i get 'interface file not found' errors
19:21:04<Saizan>eelco: how are you compiling this?
19:21:12<eelco>cabal
19:21:38<Saizan>ah right, i didn't realize that was the installed .hi
19:22:03<eelco>yeah, it's from another package
19:22:08<Saizan>i'd try cleaning and rebuilding HAppS-State
19:22:20<eelco>already did
19:22:57<Saizan>err, HAppS-Data i mean
19:23:16<eelco>yes, that's what i thought ;)
19:23:59<eelco>i think it could be related to HaXml, so I'm trying to rebuild that now
19:24:12<eelco>and then HAppS-Data
19:54:05<eelco>hmm, nope, that wasn't it
20:00:10<eelco>bluh, i give up for today
20:14:39<Saizan>cleaned and rebuilt everything without that error
20:14:39<Saizan>which platform are you on?
20:56:51<guenni>hi duffy
20:56:51<dufflebunk>Hello guenni
20:56:51<dufflebunk>I'm following the instructions for downloading and installing happs, and after I do all the darcs gets, I have a separate directory for each of the things I got. But the isntructions suggest I just need to configure, build,. and install in one of them
20:57:18<Saizan>in each of them, in the order mandated by the dependencies
20:57:41<dufflebunk>Ok
20:59:02<Saizan>so: HAppS-Util , HAppS-Data , HAppS-State , HAppS-IxSet , HAppS-Server, HAppS-Begin is currently broken but it's just a demo app, you can find working examples under HAppS-Server/Examples
20:59:17<Saizan>some of them won't compile because they are too old
20:59:55<dufflebunk>ACTION needs to get hslogger too
21:00:14<Saizan>and ghc 6.8.2, and some other packages
21:01:12<Saizan>get hslogger from here: darcs get --partial http://darcs.complete.org/hslogger
21:01:23<dufflebunk>hmm, looks like hslogger from hackage won't configure due to the cabal file
21:01:37<Saizan>yeah, was going to say that :)
21:03:16<dufflebunk>Ok, now HAppS-Util's configure is telling me "Warning: No license-file field."
21:03:24<Saizan>that's harmless
21:03:24<dufflebunk>doesn't seem fatal though
21:06:27<dufflebunk>ACTION goes off to get syb-with-class and haxml
21:07:56<dufflebunk>Bah, syb-with-class won't build: Could not find module `Data.Array': it is a member of package array-0.1.0.0, which is hidden
21:07:57<dufflebunk>Perhaps the other method of installing is easier...
21:07:57<Saizan>still from hackage?
21:07:57<dufflebunk>Yeah
21:08:50<dufflebunk>version 0.3
21:09:25<Saizan>the repo is better :) http://happs.org/HAppS/syb-with-class
21:09:32<Saizan>ACTION wonders what the authors would think if he uploads a new tarball on hackage..
21:09:32<alexj>Saizan: can you push current verions of everything to hackage?
21:09:42<alexj>use the synopsis and description from my last emai?
21:09:56<alexj>currently writing a rant on the problems with cabal.
21:11:36<Saizan>HAppS-* and syb-with-class? and current you mean what's in the repos now? or until the 0.9.1.2 tag?
21:12:14<alexj>hmm. would you be up for moving the modules around as described?
21:13:04<dufflebunk>Am I going to have the same problem with haxml, or will the hackage version work?
21:14:21<Saizan>dufflebunk: no, it should work http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HaXml-1.13.3
21:14:24<dufflebunk>ACTION continues to descend into the depths of dependency hell
21:14:46<Saizan>haxml is the last iirc :)
21:14:54<alexj>dufflebunk: using searchpath is substantially easier than that.
21:14:54<dufflebunk>Saizan: haxml needs polyparse
21:15:24<Saizan>dufflebunk: not the 1.13.3 version
21:15:39<Saizan>dufflebunk: and that's the one that you need for happs
21:16:41<dufflebunk>The one on hackage is 1.19.1
21:18:53<alexj>dufflebunk: again I advise using searchpath.
21:19:12<dufflebunk>Ok, I'll try that
21:19:19<alexj>it does recursive module chasing accross the internet and takes care of that stuff for you.
21:21:06<Saizan>dufflebunk: that's the latest, i've linked you the right one
21:24:14<alexj>saizan: you doing module moving or just pushing 0.9.1?
21:24:14<Saizan>alexj: which email was you referring to?
21:24:14<alexj>the repo refactoring email I posted to the lst.
21:24:14<alexj>list
21:24:14<dufflebunk>alexj: compiling SearchPath tells me that there was no output because there's no Main module. No sp executable gets created.
21:24:14<Saizan>oh, i'm reading it now
21:24:14<alexj>dufflebunk: you need a -main-is SearchPath
21:24:14<alexj>you should be able just to cut paste directly from the web page into your shell.
21:24:14<dufflebunk>alexj: The web page says "ghc --make SearchPath.hs -o sp"
21:24:14<alexj>it does?
21:24:14<dufflebunk>Yes
21:24:14<alexj>I think you have an old version cached.
21:24:15<alexj>can you do http://searchpath.org/?
21:24:15<dufflebunk>http://searchpath.org/ has the -main-is
21:25:41<dufflebunk>Ok, it seems to be retrieving stuff now
21:46:57<alexj>dufflebunk: what web page were you looking at?
21:46:57<dufflebunk>http://happs.org/
21:46:57<alexj>ah ok. need to update that.
22:19:02<dufflebunk>Ok, I think it's installed. Now onto documentation.
22:47:45<eelco>Saizan: ppc, os x leopard with ghc 6.8.2 (probably the only person ;)
23:36:38<dufflebunk>Is there any documentation for happs, other than examples that don't compile?
23:36:38<alexj>working on it now.
23:36:38<dufflebunk>Ok.
23:37:50<dufflebunk>I guess that's part of the "sort-of" released part

Back to channel and daily index: content-negotiated html turtle