Skip to content

Commit 6ca780e

Browse files
committed
Fix and silence warnings in example files
We fixed a warning in example files, because they will likely to be removed once we have a final version on API. Instead it would be possible to check documentation and `tools` executables sources to see a full featured examples of use.
1 parent 815a414 commit 6ca780e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scls-format/examples/extract-by-ns/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
-- it will generate files "{namespace}.data"
55
-- for each namespace it sees
66
{-# LANGUAGE ScopedTypeVariables #-}
7+
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-} -- this is a tempororary file
78
module Main
89
where
910

1011
import Data.Function (fix)
1112
import Data.Char
1213
import qualified Data.Text as T
13-
import System.FilePath
1414
import qualified Data.ByteString as BS
1515
import Cardano.SCLS.Internal.Frame
1616
import Cardano.SCLS.Internal.Block.Chunk

scls-format/examples/read-file/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
--
33
-- TODO: use some streaming library instead of the current approach?
44
{-# LANGUAGE ScopedTypeVariables #-}
5+
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-} -- this is a tempororary file
56
module Main
67
where
78

89
import System.IO
910
import Data.Function (fix)
10-
import Data.Foldable (for_)
1111
import Cardano.SCLS.Internal.Frame
1212
import System.Environment (getArgs)
1313
import Cardano.SCLS.Internal.Block.Hdr

0 commit comments

Comments
 (0)