IRC channel logs

2025-06-30.log

back to list of logs

<whereiseveryone>what if guile had a meta command to switch preludes?
<daviid>whereiseveryone: you can define your meta comand - what is 'to switch preludes'?
<daviid>*commands
<daviid>define-meta-command in (system repl command) - undocumented as pointed by someone here recently, but you can use it (and see how in that module)
<sneek>dsmith: wb :)
<whereiseveryone>daviid: by prelude i mean like the haskell prelude, the base library
<whereiseveryone>daviid: i realize for guile that the prelude is somewhat baked in currently
<z572>whereiseveryone: use (define-module (module-name) #:pure)
<adamhume>One thing I find bad is that the current prelude contains too many POSIX specific APIs
<adamhume>You can use #:pure or just use the (library (name) ...) form specified in R6RS
<adamhume>R6RS library is pure by default
<adamhume>R7RS define-library might be as well.
<daviid>whereiseveryone: i have no idea what haskell prelude is - fwiw, no interest what so ever to learn haskell, feie, n opun
<dsmith>sneek, botsnack
<sneek>:)
<duncan>I'm pretty sure there's already an effort to provide a grab bag of SLIB + SRFI portions for R5RS which is called 'nifty scheme prelude' or something
<graywolf>Hi :) Is it possible to use keywords as literals in syntax-case?
<omentic>what does "source expression failed to match any pattern in form <define-syntax macro>" mean?
<omentic>for some reason, it's saying "unknown location" instead of a line number too
<ieure>omentic, Error means that the sexp you gave a macro isn't what it expected. "syntax error" basically.
<ieure>omentic, As for the unknown location, that is unfortunately extremely common with Guile. Especially when it comes to macro code, it seems to have a very hard time knowing where anything came from.
<omentic>hmm, unfortunate
<omentic>found my error tho! didn't realize define-syntax isn't overloaded to take arguments