Compare commits

..

9 Commits

Author SHA1 Message Date
Edward Langley 801bc1e033 chore(license): fix license in ASD 2022-03-29 22:37:15 -07:00
Edward Langley 1be82ea49d chore(tests): fix intentional failing test 2022-03-29 22:36:29 -07:00
Edward Langley b7d6687304 fix(serapeum): add serapeum as dep for transducer system 2022-03-29 22:33:16 -07:00
Edward Langley 78663d73f1 fix(ci): add missing quote 2022-03-29 22:30:55 -07:00
Edward Langley a65fc3873a feat(deps): remove dep on serapeum 2022-03-29 22:29:55 -07:00
Edward Langley 8709d41f8b chore: add failing test 2022-03-29 22:27:20 -07:00
Edward Langley 176572c2c6 chore: add health check for quicklisp.lisp download, fix exit codes 2022-03-29 22:26:38 -07:00
Edward Langley dc58526088 chore: double-check check for sbcl install 2022-03-29 22:24:34 -07:00
Edward Langley 9f53b1a106 chore: add health check to dep setup 2022-03-29 22:22:46 -07:00
4 changed files with 17 additions and 11 deletions
+9 -2
View File
@@ -30,13 +30,20 @@ jobs:
# Runs a set of commands using the runners shell # Runs a set of commands using the runners shell
- name: setup deps - name: setup deps
run: | run: |
nix profile install nixpkgs\#sbcl set -x
cd cd
nix profile install nixpkgs\#sbcl
command -v sbcl || exit 36
wget 'https://beta.quicklisp.org/quicklisp.lisp' wget 'https://beta.quicklisp.org/quicklisp.lisp'
[[ -f ./quicklisp.lisp ]] || exit 37
sbcl --eval '(require :uiop)' \ sbcl --eval '(require :uiop)' \
--load quicklisp.lisp \ --load quicklisp.lisp \
--eval '(handler-case (progn (error "fail!") (quicklisp-quickstart:install)) (error () (uiop:quit 40)))' \ --eval '(handler-case (quicklisp-quickstart:install) (error () (uiop:quit 38)))' \
--quit --quit
[[ -f "$HOME"/quicklisp/setup.lisp ]] || exit 39
- name: run tests - name: run tests
run: | run: |
+6 -6
View File
@@ -6,10 +6,9 @@
"composable functions, modeled on lenses and" "composable functions, modeled on lenses and"
"transducers") "transducers")
:author "Edward Langley <el-cl@elangley.org>" :author "Edward Langley <el-cl@elangley.org>"
:license "MIT" :license "Apache v2"
:depends-on (:cl-ppcre :depends-on (:cl-ppcre
:alexandria :alexandria)
:serapeum)
:serial t :serial t
:components ((:file "package") :components ((:file "package")
(:file "optics") (:file "optics")
@@ -19,9 +18,10 @@
:description #.(format nil "~@{~a~^ ~}" :description #.(format nil "~@{~a~^ ~}"
"A collection of transducers to reduce stream-manipulation overhead") "A collection of transducers to reduce stream-manipulation overhead")
:author "Edward Langley <el-cl@elangley.org>" :author "Edward Langley <el-cl@elangley.org>"
:license "MIT" :license "Apache v2"
:depends-on (:data-lens :depends-on (:data-lens
:alexandria) :alexandria
:serapeum)
:serial t :serial t
:in-order-to ((test-op (test-op :data-lens/transducers/test))) :in-order-to ((test-op (test-op :data-lens/transducers/test)))
:components ((:file "package") :components ((:file "package")
@@ -32,7 +32,7 @@
(asdf:defsystem #:data-lens/transducers/test (asdf:defsystem #:data-lens/transducers/test
:description "tests for the transducers" :description "tests for the transducers"
:author "Edward Langley <el-cl@elangley.org>" :author "Edward Langley <el-cl@elangley.org>"
:license "MIT" :license "Apache v2"
:depends-on (:data-lens/beta/transducers :depends-on (:data-lens/beta/transducers
:fiveam) :fiveam)
:serial t :serial t
+2 -2
View File
@@ -151,7 +151,7 @@ contain the new value at the location focused by the lens."
(fmap (lambda (new) (fmap (lambda (new)
(cons (cons key new) (cons (cons key new)
alist)) alist))
(funcall cb (serapeum:assocdr key alist)))))) (funcall cb (cdr (assoc key alist)))))))
(defun make-alist-lens (key) (defun make-alist-lens (key)
"A lens for updating a alist, discarding previous values" "A lens for updating a alist, discarding previous values"
@@ -162,7 +162,7 @@ contain the new value at the location focused by the lens."
alist) alist)
:key #'car :key #'car
:from-end t)) :from-end t))
(funcall cb (serapeum:assocdr key alist)))))) (funcall cb (cdr (assoc key alist)))))))
(defun make-list-lens (index) (defun make-list-lens (index)
"A lens for updating a sequence" "A lens for updating a sequence"
-1
View File
@@ -11,7 +11,6 @@
(defpackage :data-lens (defpackage :data-lens
(:use :cl) (:use :cl)
(:import-from #:serapeum #:op #:defalias)
(:export #:regex-match #:include #:exclude #:pick #:key-transform (:export #:regex-match #:include #:exclude #:pick #:key-transform
#:combine #:derive #:cumsum #:over #:on #:shortcut #:combine #:derive #:cumsum #:over #:on #:shortcut
#:defun-ct #:key #:extract-key #:element #:let-fn #:juxt #:defun-ct #:key #:extract-key #:element #:let-fn #:juxt