File tree Expand file tree Collapse file tree 3 files changed +5
-23
lines changed
Expand file tree Collapse file tree 3 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 11# Revision history for ` cardano-ledger-byron `
22
3+ ## 1.3.0.0
4+
5+ * Remove ` osHelper ` and ` archHelper ` functions.
6+
37## 1.2.0.0
48
59* Added ` Test.Cardano.Chain.Binary.Cddl ` module
Original file line number Diff line number Diff line change 11cabal-version : 3.0
22name : cardano-ledger-byron
3- version : 1.2 .0.0
3+ version : 1.3 .0.0
44license : Apache-2.0
55maintainer : operations@iohk.io
66author : IOHK
@@ -233,7 +233,6 @@ library
233233 -Wunused-packages
234234
235235 build-depends :
236- Cabal-syntax,
237236 aeson,
238237 base >= 4.14 && < 5 ,
239238 base58-bytestring,
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ module Cardano.Chain.Update.SystemTag (
1212 SystemTagError (.. ),
1313 checkSystemTag ,
1414 systemTagMaxLength ,
15- osHelper ,
16- archHelper ,
1715)
1816where
1917
@@ -36,8 +34,6 @@ import Cardano.Prelude hiding (cborError)
3634import Data.Aeson (ToJSON , ToJSONKey )
3735import Data.Data (Data )
3836import qualified Data.Text as T
39- import Distribution.System (Arch (.. ), OS (.. ))
40- import Distribution.Text (display )
4137import Formatting (bprint , int , stext )
4238import qualified Formatting.Buildable as B
4339import NoThunks.Class (NoThunks (.. ))
@@ -119,20 +115,3 @@ checkSystemTag (SystemTag tag)
119115 | T. length tag > systemTagMaxLength = throwError $ SystemTagTooLong tag
120116 | T. any (not . isAscii) tag = throwError $ SystemTagNotAscii tag
121117 | otherwise = pure ()
122-
123- -- | Helper to turn an @OS@ into a @Text@ compatible with the @systemTag@
124- -- previously used in 'configuration.yaml'
125- osHelper :: OS -> Text
126- osHelper sys = case sys of
127- Windows -> " win"
128- OSX -> " macos"
129- Linux -> " linux"
130- _ -> toS $ display sys
131-
132- -- | Helper to turn an @Arch@ into a @Text@ compatible with the @systemTag@
133- -- previously used in 'configuration.yaml'
134- archHelper :: Arch -> Text
135- archHelper archt = case archt of
136- I386 -> " 32"
137- X86_64 -> " 64"
138- _ -> toS $ display archt
You can’t perform that action at this time.
0 commit comments