packages feed

claferwiki 0.5.8 → 0.6.0

raw patch · 8 files changed

+24/−18 lines, 8 filesdep ~claferPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: clafer

API changes (from Hackage documentation)

Files

CHANGES.md view
@@ -1,3 +1,9 @@+* claferwiki Version 0.6.0, Nov 29, 2026++Minor release with Clafer 0.6.0.++* Builds with GHC 9.12.4 (Stackage nightly-2026-11-15) and still with GHC 9.6.7.+ * claferwiki Version 0.5.8, Nov 15, 2026  Minor release with Clafer 0.5.8.
LICENSE view
@@ -1,5 +1,5 @@ Copyright 2012-2019 Generative Software Development Lab <http://gsd.uwaterloo.ca>-Copyright 2019-2023 Intelligent Systems Development Lab <https://uwaterloo.ca/wise-lab/>+Copyright 2019-2026 Waterloo Intelligent Systems Engineering Lab, University of Waterloo <https://uwaterloo.ca/wise-lab/>  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in
README.md view
@@ -1,6 +1,6 @@ # Claferwiki -##### v0.5.8+##### v0.6.0  **Claferwiki** is a wiki system integrated with [Clafer compiler](https://github.com/gsdlab/clafer). [Clafer](http://clafer.org) is a lightweight yet powerful structural modeling language. Claferwiki allows for embedding Clafer model fragments in wiki pages and provides model authoring support including code highlighting, parse and semantic error reporting, hyperlinking from identifier use to its definition, and graphical view rendering. @@ -34,7 +34,7 @@  ### Dependencies -* [Clafer compiler](https://github.com/gsdlab/clafer/) v0.5.8+* [Clafer compiler](https://github.com/gsdlab/clafer/) v0.6.0 * [GHC](https://www.haskell.org/downloads) v9.6.7 or v9.12.4 * [cabal-install](https://hackage.haskell.org/package/cabal-install) >= v3.10.3 (when building with `cabal`) * [Git](http://git-scm.com)
claferwiki.cabal view
@@ -1,6 +1,6 @@ cabal-version:          3.8 name:                   claferwiki-version:                0.5.8+version:                0.6.0 author:                 Michał Antkiewicz, Chris Walker, Luke Michael Brown maintainer:             Michał Antkiewicz <michal.antkiewicz@uwaterloo.ca> synopsis:               A wiki-based IDE for literate modeling with Clafer@@ -41,7 +41,7 @@                       , gitit >= 0.15.1.1                       , happstack-server >= 7.0 -                      , clafer == 0.5.8+                      , clafer == 0.6.0   hs-source-dirs:       src   ghc-options:          -Wall -fno-warn-orphans   exposed-modules:      Network.Gitit.Plugin.ClaferWiki
claferwiki.sh view
@@ -1,5 +1,5 @@ echo "-----------------------------------------"-echo "| ClaferWiki v0.5.8                     |"+echo "| ClaferWiki v0.6.0                     |" echo "| https://github.com/gsdlab/claferwiki/ |" echo "| By Michal Antkiewicz, Chris Walker    |" echo "| Generative Software Development Lab   |"
src/Network/Gitit/Plugin/ClaferWiki.hs view
@@ -1,6 +1,6 @@ {-  Copyright 2012-2019 Generative Software Development Lab <http://gsd.uwaterloo.ca>- Copyright 2019-2023 Intelligent Systems Development Lab <https://uwaterloo.ca/wise-lab/>+ Copyright 2019-2026 Waterloo Intelligent Systems Engineering Lab, University of Waterloo <https://uwaterloo.ca/wise-lab/>   Permission is hereby granted, free of charge, to any person obtaining a copy of  this software and associated documentation files (the "Software"), to deal in@@ -41,7 +41,7 @@ import qualified Data.Text as T import Data.Text.Lazy (toStrict) import Data.Text.Lazy.Builder (Builder,  fromString, toLazyText, singleton)-import Happstack.Server (Request, getHeader)+import Happstack.Server (getHeader) import System.Directory (createDirectoryIfMissing, doesFileExist) import System.Environment (lookupEnv) import System.Process (readProcessWithExitCode)@@ -142,13 +142,13 @@         addMode _                                               = []          extractCompilerResult :: Either [ClaferErr] (Map.Map ClaferMode CompilerResult) -> ClaferMode -> Maybe CompilerResult-        extractCompilerResult result claferMode = either (const Nothing) (Map.lookup claferMode) result+        extractCompilerResult result mode' = either (const Nothing) (Map.lookup mode') result          extractOutput :: Either [ClaferErr] (Map.Map ClaferMode CompilerResult) -> ClaferMode -> String-        extractOutput (Right compilerResultMap) claferMode =-            case Map.lookup claferMode compilerResultMap of+        extractOutput (Right compilerResultMap) mode' =+            case Map.lookup mode' compilerResultMap of                 Just CompilerResult{ outputCode } -> outputCode-                Just NoCompilerResult{ reason } -> "Error: No " ++ show claferMode ++ " output. Reason:" ++ reason+                Just NoCompilerResult{ reason } -> "Error: No " ++ show mode' ++ " output. Reason:" ++ reason                 Nothing -> "Error: No " ++ show claferMode ++ " output."         extractOutput (Left err) _ = highlightErrors fragmentedModel err @@ -271,7 +271,7 @@     "</div>" <> nl  renderGraph :: String  -> Builder-renderGraph    svgGraph = +renderGraph    svgGraph =     "<div style=\"display:block;width:100%;border:solid lightgray 1px;overflow-x:auto;\">" <> nl <>     fromString svgGraph <> nl <>     "</div>" <> nl@@ -311,7 +311,7 @@  renderAnalyzeWithClaferMooViz :: String -> String -> String -> Block renderAnalyzeWithClaferMooViz fileName toolURL' wikiURL =-    mkHtmlBlock +    mkHtmlBlock       ("<div>" <> nl <>       "<a href=\"" <> fromString (escapeAttribute toolURL') <> "?claferFileURL=" <> fromString (escapeAttribute wikiURL) <> "clafer/" <> nl <>       fromString fileName <> nl <>@@ -322,7 +322,7 @@  renderConfigureWithClaferConfigurator :: String -> String -> String -> Block renderConfigureWithClaferConfigurator fileName toolURL' wikiURL =-    mkHtmlBlock +    mkHtmlBlock       ("<div>" <> nl <>       "<a href=\"" <> fromString (escapeAttribute toolURL') <> "?claferFileURL=" <> fromString (escapeAttribute wikiURL) <> "clafer/" <> nl <>       fromString fileName <> nl <>@@ -333,7 +333,7 @@  renderAddOpenInIDE :: String -> String -> String -> Block renderAddOpenInIDE    fileName  toolURL' wikiURL =-    mkHtmlBlock +    mkHtmlBlock       ("<div>" <> nl <>       "<a href=\"" <> fromString (escapeAttribute toolURL') <> "?claferFileURL=" <> fromString (escapeAttribute wikiURL) <> "clafer/" <> nl <>       fromString fileName <> nl <>
stack.yaml view
@@ -1,5 +1,5 @@ # for GHC-9.12.4-resolver: nightly-2026-11-11+resolver: nightly-2026-11-15  flags:   sendfile:
templates/footer.st view
@@ -1,1 +1,1 @@-<div id="footer">powered by <a href="http://github.com/jgm/gitit/tree/master/">gitit-0.16</a> and <a href="https://github.com/gsdlab/clafer">clafer-0.5.8</a></div>+<div id="footer">powered by <a href="http://github.com/jgm/gitit/tree/master/">gitit-0.16</a> and <a href="https://github.com/gsdlab/clafer">clafer-0.6.0</a></div>