stan 0.1.2.0 → 0.1.2.1
raw patch · 6 files changed
+39/−5 lines, 6 filesdep ~base64dep ~clay
Dependency ranges changed: base64, clay
Files
- CHANGELOG.md +6/−0
- src/Stan/Observation.hs +14/−0
- src/Stan/Report/Css.hs +2/−1
- stack-ghc-9.6.3.yaml +12/−0
- stack.yaml +1/−1
- stan.cabal +4/−3
CHANGELOG.md view
@@ -3,6 +3,12 @@ `stan` uses [PVP Versioning][1]. The change log is available [on GitHub][2]. +## 0.1.2.1++* Support `clay-0.15` series.++* Support `base64-1.0` series.+ ## 0.1.2.0 * Added `runStan`, `getAnalysis`, `getStanConfig`
src/Stan/Observation.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE CPP #-}+ {- | Copyright: (c) 2020 Kowainik SPDX-License-Identifier: MPL-2.0@@ -40,6 +42,9 @@ import Stan.Severity (prettyShowSeverity, severityColour) import qualified Crypto.Hash.SHA1 as SHA1+#if MIN_VERSION_base64(1,0,0)+import qualified Data.Base64.Types+#endif import qualified Data.ByteString.Base64 as Base64 import qualified Data.ByteString.Char8 as BS import qualified Data.HashSet as HS@@ -269,6 +274,14 @@ , show (srcSpanStartLine srcSpan) <> ":" <> show (srcSpanStartCol srcSpan) ] +#if MIN_VERSION_base64(1,0,0)+extractBase64 :: Data.Base64.Types.Base64 k a -> a+extractBase64 = Data.Base64.Types.extractBase64+#else+extractBase64 :: a -> a+extractBase64 = id+#endif+ {- | Hash module name to a short string of length @6@. Hashing algorithm is the following: @@ -279,6 +292,7 @@ hashModuleName :: ModuleName -> Text hashModuleName = Text.take 6+ . extractBase64 . Base64.encodeBase64 . SHA1.hash . encodeUtf8
src/Stan/Report/Css.hs view
@@ -297,7 +297,8 @@ w :: NonEmpty Rational w = 4.33 :| [12.66, 21, 29.33, 37.66, 46, 54.33, 62.66, 71, 79.33, 87.66, 96] - mediaQuery :: Double -> Css -> Css+ -- clay-0.14: mediaQuery :: Double -> Css -> Css+ -- clay-0.15: mediaQuery :: Number -> Css -> Css mediaQuery x = query M.screen [M.minWidth (em x)] marginAuto :: Css
+ stack-ghc-9.6.3.yaml view
@@ -0,0 +1,12 @@+resolver: lts-22.6 # GHC 9.6.3++extra-deps:+- ansi-wl-pprint-0.6.9@sha256:fb737bc96e2aef34ad595d54ced7a73f648c521ebcb00fe0679aff45ccd49212,2448+- dir-traverse-0.2.3.0@sha256:adcc128f201ff95131b15ffe41365dc99c50dc3fa3a910f021521dc734013bfa,2137+- extensions-0.1.0.1@sha256:f365d1da5ea1c60edd11334113ecd0d78eb12b4186b31151322ff7175a9adef7,5108+- optparse-applicative-0.17.1.0@sha256:cb5f5f0dc9749846fc0e3df0041a8efee6368cc1cff07336acd4c3b02a951ed6,5147+- tomland-1.3.3.2@sha256:887dc39a8c9819deb8fcb6fde72e87dad4c94108b1736a5bf7215ccf3117bd0f,9474+- trial-0.0.0.0@sha256:ebd93f3485dd7f0ce8426fa46b500f26edbea285c2890150123e1b0f6a92c7db,4410+- trial-optparse-applicative-0.0.0.0@sha256:ee878dbf412849d4fb52d7bca93bec45a6392a93e03a46bd320109b9a0ff2a38,2540+- trial-tomland-0.0.0.0@sha256:c10c5c3f94e3dcfcad4a66cf70682ace77d5381596aff91fa2030636d07de977,2541+- validation-selective-0.2.0.0@sha256:e1ab5482dede8bf676d729a09109c7c5f798363b9d458e4197a27afb8b48fdd3,3907
stack.yaml view
@@ -1,4 +1,4 @@-resolver: lts-22.0 # GHC 9.6.3+resolver: lts-22.7 # GHC 9.6.4 extra-deps: - ansi-wl-pprint-0.6.9@sha256:fb737bc96e2aef34ad595d54ced7a73f648c521ebcb00fe0679aff45ccd49212,2448
stan.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: stan-version: 0.1.2.0+version: 0.1.2.1 synopsis: Haskell STatic ANalyser description: Stan is a Haskell __ST__atic __AN__alysis CLI tool.@@ -19,6 +19,7 @@ CHANGELOG.md extra-source-files: test/.stan-example.toml stack-ghc-9.4.8.yaml+ stack-ghc-9.6.3.yaml stack.yaml tested-with: GHC == 8.8.4 GHC == 8.10.7@@ -134,10 +135,10 @@ Stan.Hie.Debug908 build-depends: array ^>= 0.5- , base64 ^>= 0.4.1+ , base64 >= 0.4.1 && < 1.1 , blaze-html ^>= 0.9.1 , bytestring >= 0.10 && < 0.13- , clay ^>= 0.14+ , clay >= 0.14 && < 0.16 , colourista >= 0.1 && < 0.3 , containers >= 0.5 && < 0.7 , cryptohash-sha1 ^>= 0.11