Skip to content

Commit

Permalink
Merge branch 'release-v0.5.6'
Browse files Browse the repository at this point in the history
* release-v0.5.6:
  Bump version and update changelogs
  Fix glob path order
  • Loading branch information
fizruk committed Sep 19, 2023
2 parents 640f079 + 99669f2 commit a6b407d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/docs/getting-started/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to the
[Haskell Package Versioning Policy](https://pvp.haskell.org/).

## v0.5.6 — 2023-09-19

This version fixes the behaviour of glob (see [`77b7cc0`](https://github.com/rzk-lang/rzk/commit/77b7cc0494fe0bfd1c9f1aa83db20f42cfda5794)).

## v0.5.5 — 2023-09-19

This version contains Unicode and tope logic-related fixes:
Expand Down
4 changes: 4 additions & 0 deletions rzk/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to the
[Haskell Package Versioning Policy](https://pvp.haskell.org/).

## v0.5.6 — 2023-09-19

This version fixes the behaviour of glob (see [`77b7cc0`](https://github.com/rzk-lang/rzk/commit/77b7cc0494fe0bfd1c9f1aa83db20f42cfda5794)).

## v0.5.5 — 2023-09-19

This version contains Unicode and tope logic-related fixes:
Expand Down
2 changes: 1 addition & 1 deletion rzk/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rzk
version: 0.5.5
version: 0.5.6
github: "rzk-lang/rzk"
license: BSD3
author: "Nikolai Kudasov"
Expand Down
2 changes: 1 addition & 1 deletion rzk/rzk.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack

name: rzk
version: 0.5.5
version: 0.5.6
synopsis: An experimental proof assistant for synthetic ∞-categories
description: Please see the README on GitHub at <https://github.com/rzk-lang/rzk#readme>
category: Dependent Types
Expand Down
2 changes: 1 addition & 1 deletion rzk/rzk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}:
mkDerivation {
pname = "rzk";
version = "0.5.5";
version = "0.5.6";
src = ./.;
isLibrary = true;
isExecutable = true;
Expand Down
5 changes: 3 additions & 2 deletions rzk/src/Rzk/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Rzk.Main where
import Control.Monad (forM)
import qualified Data.Aeson as JSON
import qualified Data.ByteString.Lazy.Char8 as ByteString
import Data.List (sort)
import Data.Version (showVersion)
import Options.Generic
import System.Exit (exitFailure)
Expand Down Expand Up @@ -58,7 +59,7 @@ globNonEmpty :: FilePath -> IO [FilePath]
globNonEmpty path = do
glob path >>= \case
[] -> error ("File(s) not found at " <> path)
paths -> return paths
paths -> return (sort paths)

parseRzkFilesOrStdin :: [FilePath] -> IO [(FilePath, Rzk.Module)]
parseRzkFilesOrStdin = \case
Expand All @@ -69,7 +70,7 @@ parseRzkFilesOrStdin = \case
-- otherwise — parse all given files in given order
paths -> do
expandedPaths <- foldMap globNonEmpty paths
forM (reverse expandedPaths) $ \path -> do
forM expandedPaths $ \path -> do
putStrLn ("Loading file " <> path)
result <- Rzk.parseModule <$> readFile path
case result of
Expand Down

0 comments on commit a6b407d

Please sign in to comment.