Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
10dd3d5
cleaning up compiler warnings
Aug 11, 2021
ee97552
Update ideas.cabal
Aug 11, 2021
c2cd7ca
suppress deprecation warnings (from CGI package)
Aug 11, 2021
335f468
stop support for ghc 8.2 (and earlier)
Aug 11, 2021
d5d5854
Update .travis.yml
Aug 11, 2021
2ea0a85
Update ideas.cabal
Aug 11, 2021
3a0cf15
fixing cabal and travis
Aug 11, 2021
ad060b3
moving apply service to separate module
BastiaanHeeren Aug 16, 2021
929471b
ApplyResult encoder
BastiaanHeeren Aug 16, 2021
0754bd5
Update NewDecoderJSON.hs
Aug 17, 2021
b2ec479
"create" feedback service
Aug 17, 2021
f681d18
Update EncoderHTML.hs
Aug 17, 2021
85ff4db
fixes in html encoder
Aug 17, 2021
cc8613b
Adding split functions to Utils.Prelude
Aug 18, 2021
8789d68
Adding subConstraints helper
Aug 18, 2021
c4adf75
Adding eqDerivationBy function
Aug 18, 2021
1e334b1
moving JSONBuilder to JSON library
Aug 18, 2021
89869bb
Using standard Except monad for decoding
Aug 23, 2021
741d45b
cleaning up Decoding interface
Aug 23, 2021
f7c0547
importing JSON decoder from logic tutor
Aug 23, 2021
e37534a
splitting JSON implementation into several modules
Aug 23, 2021
e8b03b3
updating decoders
Aug 24, 2021
c5c2948
cleaning up
Aug 24, 2021
5281acb
redesign for Text.JSON
Aug 24, 2021
2c94ea6
removing Number from JSON datatype
Aug 24, 2021
3de9dda
cleaning up functions that use Monads for fail
Aug 27, 2021
36d99f8
Maybe type instead of fail
Aug 27, 2021
99eda29
splitting Term interface, removing Monad/fail instances
Sep 3, 2021
389a513
Update Decoder.hs
Oct 12, 2021
10dd1cf
Update NewEncoderJSON.hs
Oct 20, 2021
ca6dc19
Renaming LiftView
Jan 21, 2022
a275f52
Update Diagnose.hs
Jan 21, 2022
339cf13
Update Derivation.hs
Feb 7, 2022
547ac4b
finishing term decoder
Mar 10, 2022
4bf8239
Update EncoderXML.hs
Mar 10, 2022
abf3180
simplified utf8 interface
Mar 10, 2022
2737921
decoders
Mar 17, 2022
aa5264b
refactoring / redesign xml
Mar 28, 2022
dc19974
refactoring XML.Data
Mar 28, 2022
b25c138
refactoring XML interface
Apr 4, 2022
d67f83b
interactive command-line option for testing
Apr 11, 2022
3b9905f
writing binary files
Apr 11, 2022
b21d1ee
Update Derivation.hs
Jul 19, 2022
25af94f
ghc 9.2.5
Dec 9, 2022
c5827ea
MonadFail compatibility
Dec 15, 2022
181a188
Removing dependency on MonadFail and fail
Jan 6, 2023
79453dd
Compiling with ghc 9.6.7
alexgerdes Jul 14, 2025
c4c6ade
Removing stack yaml file
alexgerdes Jul 14, 2026
b4ba127
Converted the tutorial to a cabal project
alexgerdes Jul 23, 2026
e85d6e9
Extra files for the the cabal project
alexgerdes Jul 23, 2026
7a8d7f7
Added a Dockerfile to build the tutorial
alexgerdes Jul 23, 2026
ebbaf96
Regenerated the tutorial documentation
alexgerdes Jul 23, 2026
f35f832
Added some example service requests in XML format
alexgerdes Jul 23, 2026
12dc4e9
Fixed a warning, using `splitGen` instead of `split`
alexgerdes Jul 23, 2026
cef2e8e
Fix OpenMath decoding of formatted XML
alexgerdes Sep 4, 2026
68f7211
Build with recent GHC versions
alexgerdes Sep 5, 2026
cff86e4
Switch CI to GitHub Actions
alexgerdes Sep 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: GHC ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc: [9.6.7, 9.10.3, 9.12.4]

steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: 3.12.1.0
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install --yes libgmp-dev libsqlite3-dev
- uses: actions/cache@v4
with:
path: ~/.cabal/store
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal') }}
- run: cabal build all --enable-tests --enable-benchmarks
- run: cabal test all
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ docs/compile.txt
tutorial/Tutorial.hi
tutorial/Tutorial.exe
tutorial/Tutorial.o
report.html
report.html
cabal.project.local
dist-newstyle/
tags
/tutorial/tutorial
205 changes: 0 additions & 205 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ HS-SOURCES = $(wildcard $(SRCDIR)/*/*.hs $(SRCDIR)/*/*/*.hs $(SRCDIR)/*/*/*/*.hs
ghci:
$(GHCI) -i$(SRCDIR) -odir $(OUTDIR) -hidir $(OUTDIR) $(GHCWARN)

ideas: revision
ideas: # revision
$(GHC) -i$(SRCDIR) -odir $(OUTDIR) -hidir $(OUTDIR) $(GHCWARN) $(HS-SOURCES) 2>&1 | tee $(DOCSDIR)/compile.txt

#---------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IDEAS

[![Build Status](https://travis-ci.org/ideas-edu/ideas.svg?branch=master)](https://travis-ci.org/ideas-edu/ideas)
[![CI](https://github.com/ideas-edu/ideas/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ideas-edu/ideas/actions/workflows/ci.yml)

## Feedback services for intelligent tutoring systems

Expand Down
27 changes: 20 additions & 7 deletions ideas.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ stability: provisional
extra-source-files: NOTICE.txt, CHANGELOG.txt
build-type: Simple
cabal-version: >= 1.8.0.2
tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.2
tested-with: GHC == 9.6.7, GHC == 9.10.3, GHC == 9.12.4

source-repository head
type: git
Expand All @@ -49,21 +49,21 @@ Library
ghc-options: -Wall
hs-source-dirs: src
Build-Depends:
base >= 4.8 && < 5,
blaze-builder >= 0.4,
base < 4.22,
blaze-builder,
bytestring,
case-insensitive,
QuickCheck >= 2.8 && < 2.12,
QuickCheck,
Diff,
containers,
directory,
filepath,
http-types,
mtl,
network < 3.0,
network,
parsec,
random,
streaming-commons < 0.2,
random >= 1.3,
streaming-commons,
time,
uniplate,
wai,
Expand Down Expand Up @@ -93,6 +93,9 @@ Library
Ideas.Common.Rewriting.RewriteRule
Ideas.Common.Rewriting.Substitution
Ideas.Common.Rewriting.Term
Ideas.Common.Rewriting.Term.Class
Ideas.Common.Rewriting.Term.Data
Ideas.Common.Rewriting.Term.Decoder
Ideas.Common.Rewriting.Unification
Ideas.Common.Rule
Ideas.Common.Rule.Abstract
Expand Down Expand Up @@ -143,6 +146,7 @@ Library
Ideas.Main.CmdLineOptions
Ideas.Main.Default
Ideas.Main.Revision
Ideas.Service.Apply
Ideas.Service.BasicServices
Ideas.Service.Diagnose
Ideas.Service.DomainReasoner
Expand All @@ -160,6 +164,11 @@ Library
Ideas.Text.HTML.Templates
Ideas.Text.HTML.W3CSS
Ideas.Text.JSON
Ideas.Text.JSON.Builder
Ideas.Text.JSON.Class
Ideas.Text.JSON.Data
Ideas.Text.JSON.Decoder
Ideas.Text.JSON.RPC
Ideas.Text.Latex
Ideas.Text.MathML
Ideas.Text.OpenMath.Dictionary.Arith1
Expand All @@ -178,6 +187,10 @@ Library
Ideas.Text.OpenMath.Tests
Ideas.Text.UTF8
Ideas.Text.XML
Ideas.Text.XML.Attributes
Ideas.Text.XML.Builder
Ideas.Text.XML.Data
Ideas.Text.XML.Decoder
Ideas.Text.XML.Document
Ideas.Text.XML.Parser
Ideas.Text.XML.Unicode
Expand Down
8 changes: 2 additions & 6 deletions src/Ideas/Common/Classes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

module Ideas.Common.Classes
( -- * Type class Apply
Apply(applyAll), apply, applicable, applyD, applyM, applyList
Apply(applyAll), apply, applicable, applyD, applyList
-- * Type class Container
, Container(singleton, getSingleton)
-- * Type class BiArrow
Expand Down Expand Up @@ -54,12 +54,8 @@ applicable ta = isJust . apply ta
applyD :: Apply t => t a -> a -> a
applyD ta a = fromMaybe a (apply ta a)

-- | Same as apply, except that the result (at most one) is returned in some monad
applyM :: (Apply t, Monad m) => t a -> a -> m a
applyM ta = maybe (fail "applyM") return . apply ta

applyList :: Apply t => [t a] -> a -> Maybe a
applyList xs a = foldl (\m r -> m >>= applyM r) (Just a) xs
applyList xs a = foldl (\m r -> m >>= apply r) (Just a) xs

-----------------------------------------------------------
-- Type class Container
Expand Down
Loading
Loading