Skip to content

Commit

Permalink
Merge pull request #1468 from AmpersandTarski/stack-issue-6477
Browse files Browse the repository at this point in the history
Stack issue 6477
  • Loading branch information
hanjoosten authored Feb 21, 2024
2 parents aa06035 + 6062e4f commit 3bd1708
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
with:
mysql-version: "mariadb-10.6"
- name: Build and test 🏗 🧪
uses: freckle/stack-action@main # stack-action does all these steps: dependencies, build, test.
uses: freckle/stack-action@v4 # stack-action does all these steps: dependencies, build, test.
with:
stack-arguments: "--copy-bins --flag ampersand:buildAll"

Expand All @@ -65,7 +65,7 @@ jobs:
with:
mysql-version: "mariadb-10.6"
- name: Build and test 🏗 🧪
uses: freckle/stack-action@main
uses: freckle/stack-action@v4
with:
stack-arguments: "--copy-bins --flag ampersand:buildAll"

Expand Down Expand Up @@ -94,6 +94,6 @@ jobs:
php-version: "8.0"
extensions: mysqli
- name: Build and test 🏗 🧪
uses: freckle/stack-action@main
uses: freckle/stack-action@v4
with:
stack-arguments: "--copy-bins --flag ampersand:buildAll"
2 changes: 1 addition & 1 deletion .github/workflows/codeQuality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Use cache when available 📦
uses: freckle/stack-cache-action@main
- name: Build the project 🌿🌿🌿
uses: freckle/stack-action@v3.2.2
uses: freckle/stack-action@v4
with:
test: false

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
with:
mysql-version: "mariadb-10.6"
- name: Build and test 🏗 🧪
uses: freckle/stack-action@main # stack-action does all these steps: dependencies, build, test.
uses: freckle/stack-action@v4 # stack-action does all these steps: dependencies, build, test.
with:
stack-arguments: "--copy-bins --flag ampersand:buildAll"
- name: Upload artifacts (Linux)
Expand All @@ -175,9 +175,9 @@ jobs:
with:
mysql-version: "mariadb-10.6"
- name: Build and test 🏗 🧪
uses: freckle/stack-action@main
uses: freckle/stack-action@v4
with:
stack-arguments: "--copy-bins --flag ampersand:buildAll"
stack-arguments: "--copy-bins --flag ampersand:buildAll --verbose"
- name: Upload artifacts (macOS)
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
php-version: "8.0"
extensions: mysqli
- name: Build and test 🏗 🧪
uses: freckle/stack-action@main
uses: freckle/stack-action@v4
with:
stack-arguments: "--copy-bins --flag ampersand:buildAll"
- name: Upload artifacts (Windows)
Expand Down
3 changes: 3 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release notes of Ampersand

## v5.0.2 (21 february 2024)
- Eliminated warnings and hints in CI/CD and in Haskell code. Doing some tests for a [strange issue with stack](https://github.com/commercialhaskell/stack/issues/6477)

## v5.0.1 (5 february 2024)
- Some adaptions to w.r.t. the namespaces, in the generated funcional specification.

Expand Down
2 changes: 1 addition & 1 deletion ampersand.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 2.0
-- see: https://github.com/sol/hpack

name: ampersand
version: 5.0.1
version: 5.0.2
synopsis: Toolsuite for automated design of enterprise information systems.
description: You can define your business processes by means of rules, written in Relation Algebra.
category: Database Design
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ampersand
version: 5.0.1
version: 5.0.2
author: Stef Joosten
maintainer: stef.joosten@ou.nl
synopsis: Toolsuite for automated design of enterprise information systems.
Expand Down
2 changes: 1 addition & 1 deletion src/Ampersand/Output/ToJSON/Interfaces.hs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ instance JSON TemplateKeyValue JSONTemplateKeyValue where
instance JSON Interface JSONInterface where
fromAmpersand env fSpec interface =
JSONInterface
{ ifcJSONname = fullName $ interface,
{ ifcJSONname = fullName interface,
ifcJSONlabel = label interface,
ifcJSONifcObject = fromAmpersand env fSpec (BxExpr $ ifcObj interface),
ifcJSONisAPI = ifcIsAPI interface
Expand Down
2 changes: 1 addition & 1 deletion src/Ampersand/Output/ToJSON/Rules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ instance JSON FSpec Rulez where
instance JSON Rule JsonRule where
fromAmpersand env fSpec rule =
JsonRule
{ rulJSONname = fullName $ rule,
{ rulJSONname = fullName rule,
rulJSONlabel = label rule,
rulJSONruleAdl = showA . formalExpression $ rule,
rulJSONorigin = tshow . origin $ rule,
Expand Down
2 changes: 1 addition & 1 deletion src/Ampersand/Output/ToJSON/Views.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ instance JSON FSpec Views where
instance JSON ViewDef View where
fromAmpersand env fSpec vd =
View
{ vwJSONname = fullName $ vd,
{ vwJSONname = fullName vd,
vwJSONlabel = label vd,
vwJSONconceptName = text1ToText . idWithoutType' . vdcpt $ vd,
vwJSONisDefault = vdIsDefault vd,
Expand Down
12 changes: 6 additions & 6 deletions src/Ampersand/Output/ToPandoc/ChapterDataAnalysis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ chpDataAnalysis env fSpec = (theBlocks, [])
(plain . text . l) (NL "Target", EN "Target"),
(plain . text . l) (NL "uniek", EN "unique")
]
[ [ (plain . text) ((label . source) rel <> "(" <> tshow nSrcConcept <> ")"), -- use "tshow.attType" for the technical type.
[ [ (plain . text) (label (source rel) <> "(" <> tshow nSrcConcept <> ")"), -- use "tshow.attType" for the technical type.
(plain . text) (percent (Set.size (Set.map apLeft pairs)) nSrcConcept),
(plain . text) ((label) rel <> "(" <> tshow (Set.size pairs) <> ")"),
(plain . text) ((label . target) rel <> "(" <> tshow nTgtConcept <> ")"), -- use "tshow.attType" for the technical type.
(plain . text) (label rel <> "(" <> tshow (Set.size pairs) <> ")"),
(plain . text) (label (target rel) <> "(" <> tshow nTgtConcept <> ")"), -- use "tshow.attType" for the technical type.
(plain . text) (percent (Set.size (Set.map apRight pairs)) nTgtConcept)
]
| Just rel <- map assmdcl asscs,
Expand Down Expand Up @@ -519,15 +519,15 @@ primExpr2pandocMath lang e =
in case lang of
Dutch -> text "de identiteitsrelatie van "
English -> text "the identityrelation of "
<> math (label $ srcTable)
<> math (label srcTable)
(EDcI c) ->
case lang of
Dutch -> text "de identiteitsrelatie van "
English -> text "the identityrelation of "
<> math (label $ c)
<> math (label c)
(EEps c _) ->
case lang of
Dutch -> text "de identiteitsrelatie van "
English -> text "the identityrelation of "
<> math (label $ c)
<> math (label c)
_ -> fatal ("Have a look at the generated Haskell to see what is going on..\n" <> tshow e)

0 comments on commit 3bd1708

Please sign in to comment.