u/ruby_object

▲ 19 r/lisp

Quicklisp - loading broken packages

Sometimes quicklisp or ultralisp packages are broken. and (ql:quickload :broken) will not work. If you need to edit the package before quickload,

You can run: (ql::ensure-installed (ql::find-system :broken)),

then find it with (ql:where-is-system :broken),

and then edit it and run (ql:quickload :broken)

reddit.com
u/ruby_object — 11 days ago
▲ 3 r/lisp

Is this correct?

;; (quicksort '(7 3 6 4 5 2 1))

(defun quicksort (d)
  (let ((x  (first d))
        (xs (rest d)))
    (macrolet ((filter-that (pre seq) `(remove-if (lambda (val) ,pre) ,seq)))
      (labels ((less   () (filter-that (not (< val x)) xs))
               (equal- () (filter-that (not (= val x)) xs))
               (more   () (filter-that (not (> val x)) xs)))
        (if (equal d '())
            '()
            (concatenate 'list
                         (quicksort (less))
                         (cons x    (equal-))
                         (quicksort (more))))))))
reddit.com
u/ruby_object — 1 month ago
▲ 13 r/haskell

can compile the project with cabal build,

https://github.com/bigos/cabal-experiments/blob/321c37ffa33b1b25e883de39ddc944c5314c5c7c/graphviz-simple/app/Main.hs#L1

but when I load the file in Emacs and use the menu option Haskell/Load tidy core I get an error like this and 5 more that make no sense. What is the meaning of:

Use -v (or `:set -v` in ghci) to see a list of the files searched for.

?

How can I fix the error? It seems that a fix for the problem will provide more help with modules.

/home/jacek/Programming/Haskell/cabal-experiments/graphviz-simple/app/Main.hs:7:1: error:
    Could not find module ‘Data.GraphViz.Attributes’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
7 | import Data.GraphViz.Attributes (color, filled, shape, style, textLabel)
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
u/ruby_object — 2 months ago