Resolving dependencies... Configuring call-stack-0.4.0... Preprocessing library for call-stack-0.4.0.. Building library for call-stack-0.4.0.. [1 of 3] Compiling Data.SrcLoc ( src/Data/SrcLoc.hs, dist/build/Data/SrcLoc.o, dist/build/Data/SrcLoc.dyn_o ) [2 of 3] Compiling Data.CallStack ( src/Data/CallStack.hs, dist/build/Data/CallStack.o, dist/build/Data/CallStack.dyn_o ) [3 of 3] Compiling Paths_call_stack ( dist/build/autogen/Paths_call_stack.hs, dist/build/Paths_call_stack.o, dist/build/Paths_call_stack.dyn_o ) Preprocessing library for call-stack-0.4.0.. Running Haddock on library for call-stack-0.4.0.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. [1 of 3] Compiling Data.SrcLoc ( src/Data/SrcLoc.hs, nothing ) [2 of 3] Compiling Data.CallStack ( src/Data/CallStack.hs, nothing ) [3 of 3] Compiling Paths_call_stack ( dist/build/autogen/Paths_call_stack.hs, nothing ) Haddock coverage: 33% ( 2 / 6) in 'Data.CallStack' Missing documentation for: Module header CallStack (src/Data/CallStack.hs:42) callStack (src/Data/CallStack.hs:45) callSite (src/Data/CallStack.hs:55) Warning: Data.CallStack: could not find link destinations for: - GHC.Generics.Rep_SrcLoc Documentation created: dist/doc/html/call-stack/, dist/doc/html/call-stack/call-stack.txt Installing library in /var/lib/hackage-doc-builder/build-cache/tmp-install/lib/x86_64-linux-ghc-9.8.4/call-stack-0.4.0-6toa6qiMTfCIj9v12ifnhn Completed call-stack-0.4.0 Configuring splitmix-0.1.3.1... Preprocessing library for splitmix-0.1.3.1.. Building library for splitmix-0.1.3.1.. [1 of 4] Compiling Data.Bits.Compat ( src-compat/Data/Bits/Compat.hs, dist/build/Data/Bits/Compat.o, dist/build/Data/Bits/Compat.dyn_o ) [2 of 4] Compiling System.Random.SplitMix.Init ( src/System/Random/SplitMix/Init.hs, dist/build/System/Random/SplitMix/Init.o, dist/build/System/Random/SplitMix/Init.dyn_o ) [3 of 4] Compiling System.Random.SplitMix ( src/System/Random/SplitMix.hs, dist/build/System/Random/SplitMix.o, dist/build/System/Random/SplitMix.dyn_o ) [4 of 4] Compiling System.Random.SplitMix32 ( src/System/Random/SplitMix32.hs, dist/build/System/Random/SplitMix32.o, dist/build/System/Random/SplitMix32.dyn_o ) Preprocessing library for splitmix-0.1.3.1.. Running Haddock on library for splitmix-0.1.3.1.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. [1 of 4] Compiling Data.Bits.Compat ( src-compat/Data/Bits/Compat.hs, nothing ) [2 of 4] Compiling System.Random.SplitMix.Init ( src/System/Random/SplitMix/Init.hs, nothing ) [3 of 4] Compiling System.Random.SplitMix ( src/System/Random/SplitMix.hs, nothing ) [4 of 4] Compiling System.Random.SplitMix32 ( src/System/Random/SplitMix32.hs, nothing ) Haddock coverage: Warning: 'SMGen' is ambiguous. It is defined * at src/System/Random/SplitMix.hs:77:14 * at src/System/Random/SplitMix.hs:77:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/SplitMix.hs:77:1 100% ( 22 / 22) in 'System.Random.SplitMix' Warning: 'SMGen' is ambiguous. It is defined * at src/System/Random/SplitMix32.hs:61:14 * at src/System/Random/SplitMix32.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/SplitMix32.hs:61:1 100% ( 22 / 22) in 'System.Random.SplitMix32' Documentation created: dist/doc/html/splitmix/, dist/doc/html/splitmix/splitmix.txt Installing library in /var/lib/hackage-doc-builder/build-cache/tmp-install/lib/x86_64-linux-ghc-9.8.4/splitmix-0.1.3.1-FLXrwOMCBr82OHyMQoNXPe Completed splitmix-0.1.3.1 Configuring HUnit-1.6.2.0... Preprocessing library for HUnit-1.6.2.0.. Building library for HUnit-1.6.2.0.. [1 of 6] Compiling Paths_HUnit ( dist/build/autogen/Paths_HUnit.hs, dist/build/Paths_HUnit.o, dist/build/Paths_HUnit.dyn_o ) [2 of 6] Compiling Test.HUnit.Lang ( src/Test/HUnit/Lang.hs, dist/build/Test/HUnit/Lang.o, dist/build/Test/HUnit/Lang.dyn_o ) [3 of 6] Compiling Test.HUnit.Base ( src/Test/HUnit/Base.hs, dist/build/Test/HUnit/Base.o, dist/build/Test/HUnit/Base.dyn_o ) [4 of 6] Compiling Test.HUnit.Terminal ( src/Test/HUnit/Terminal.hs, dist/build/Test/HUnit/Terminal.o, dist/build/Test/HUnit/Terminal.dyn_o ) src/Test/HUnit/Terminal.hs:41:41: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 41 | | otherwise = ta f (c:bs) (tail as) cs | ^^^^ [5 of 6] Compiling Test.HUnit.Text ( src/Test/HUnit/Text.hs, dist/build/Test/HUnit/Text.o, dist/build/Test/HUnit/Text.dyn_o ) [6 of 6] Compiling Test.HUnit ( src/Test/HUnit.hs, dist/build/Test/HUnit.o, dist/build/Test/HUnit.dyn_o ) Preprocessing library for HUnit-1.6.2.0.. Running Haddock on library for HUnit-1.6.2.0.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. [1 of 6] Compiling Paths_HUnit ( dist/build/autogen/Paths_HUnit.hs, nothing ) [2 of 6] Compiling Test.HUnit.Lang ( src/Test/HUnit/Lang.hs, nothing ) [3 of 6] Compiling Test.HUnit.Base ( src/Test/HUnit/Base.hs, nothing ) [4 of 6] Compiling Test.HUnit.Terminal ( src/Test/HUnit/Terminal.hs, nothing ) src/Test/HUnit/Terminal.hs:41:41: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 41 | | otherwise = ta f (c:bs) (tail as) cs | ^^^^ [5 of 6] Compiling Test.HUnit.Text ( src/Test/HUnit/Text.hs, nothing ) [6 of 6] Compiling Test.HUnit ( src/Test/HUnit.hs, nothing ) Haddock coverage: 54% ( 6 / 11) in 'Test.HUnit.Lang' Missing documentation for: Module header Result (src/Test/HUnit/Lang.hs:86) HUnitFailure (src/Test/HUnit/Lang.hs:41) FailureReason (src/Test/HUnit/Lang.hs:46) formatFailureReason (src/Test/HUnit/Lang.hs:83) 100% ( 33 / 33) in 'Test.HUnit.Base' 100% ( 2 / 2) in 'Test.HUnit.Terminal' Warning: 'PutText' is ambiguous. It is defined * at src/Test/HUnit/Text.hs:40:19 * at src/Test/HUnit/Text.hs:40:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/HUnit/Text.hs:40:1 Warning: 'st' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 100% ( 9 / 9) in 'Test.HUnit.Text' 100% ( 3 / 3) in 'Test.HUnit' Documentation created: dist/doc/html/HUnit/, dist/doc/html/HUnit/HUnit.txt Installing library in /var/lib/hackage-doc-builder/build-cache/tmp-install/lib/x86_64-linux-ghc-9.8.4/HUnit-1.6.2.0-I4Li6SX3p2jHu37LTSBLSu Completed HUnit-1.6.2.0 Configuring random-1.3.1... Preprocessing library for random-1.3.1.. Building library for random-1.3.1.. [1 of 6] Compiling System.Random.Array ( src/System/Random/Array.hs, dist/build/System/Random/Array.o, dist/build/System/Random/Array.dyn_o ) [2 of 6] Compiling System.Random.GFinite ( src/System/Random/GFinite.hs, dist/build/System/Random/GFinite.o, dist/build/System/Random/GFinite.dyn_o ) [3 of 6] Compiling System.Random.Internal ( src/System/Random/Internal.hs, dist/build/System/Random/Internal.o, dist/build/System/Random/Internal.dyn_o ) [4 of 6] Compiling System.Random.Seed ( src/System/Random/Seed.hs, dist/build/System/Random/Seed.o, dist/build/System/Random/Seed.dyn_o ) [5 of 6] Compiling System.Random ( src/System/Random.hs, dist/build/System/Random.o, dist/build/System/Random.dyn_o ) [6 of 6] Compiling System.Random.Stateful ( src/System/Random/Stateful.hs, dist/build/System/Random/Stateful.o, dist/build/System/Random/Stateful.dyn_o ) Preprocessing library for random-1.3.1.. Running Haddock on library for random-1.3.1.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. [1 of 6] Compiling System.Random.Array ( src/System/Random/Array.hs, nothing ) [2 of 6] Compiling System.Random.GFinite ( src/System/Random/GFinite.hs, nothing ) [3 of 6] Compiling System.Random.Internal ( src/System/Random/Internal.hs, nothing ) [4 of 6] Compiling System.Random.Seed ( src/System/Random/Seed.hs, nothing ) [5 of 6] Compiling System.Random ( src/System/Random.hs, nothing ) [6 of 6] Compiling System.Random.Stateful ( src/System/Random/Stateful.hs, nothing ) Haddock coverage: Warning: 'ST' is ambiguous. It is defined * in GHC.ST * in GHC.ST You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in GHC.ST Warning: 'StateGenM' is ambiguous. It is defined * at src/System/Random/Internal.hs:606:20 * at src/System/Random/Internal.hs:606:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:606:1 Warning: 'StateGen' is ambiguous. It is defined * at src/System/Random/Internal.hs:612:22 * at src/System/Random/Internal.hs:612:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:612:1 Warning: 'ByteArray' is ambiguous. It is defined * in Data.Array.Byte * in Data.Array.Byte You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in Data.Array.Byte Warning: 'StdGen' is ambiguous. It is defined * at src/System/Random/Internal.hs:749:18 * at src/System/Random/Internal.hs:749:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:749:1 Warning: 'MutableByteArray' is ambiguous. It is defined * in Data.Array.Byte * in Data.Array.Byte You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in Data.Array.Byte Warning: 'ST' is ambiguous. It is defined * in GHC.ST * in GHC.ST You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in GHC.ST Warning: 'StateT' is ambiguous. It is defined * in Control.Monad.Trans.State.Strict * in Control.Monad.Trans.State.Strict You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in Control.Monad.Trans.State.Strict Warning: 'Seed' is ambiguous. It is defined * at src/System/Random/Internal.hs:134:18 * at src/System/Random/Internal.hs:134:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:134:1 Warning: 'StdGen' is ambiguous. It is defined * at src/System/Random/Internal.hs:749:18 * at src/System/Random/Internal.hs:749:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:749:1 Warning: 'ByteArray' is ambiguous. It is defined * in Data.Array.Byte * in Data.Array.Byte You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in Data.Array.Byte Warning: 'ByteString' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'uniformByteStringM' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'ShortByteString' is ambiguous. It is defined * in Data.ByteString.Short.Internal * in Data.ByteString.Short.Internal You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in Data.ByteString.Short.Internal Warning: 'StdGen' is ambiguous. It is defined * at src/System/Random/Internal.hs:749:18 * at src/System/Random/Internal.hs:749:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:749:1 100% ( 71 / 71) in 'System.Random' Warning: 'TGenM' is ambiguous. It is defined * at src/System/Random/Stateful.hs:719:19 * at src/System/Random/Stateful.hs:719:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Stateful.hs:719:1 Warning: 'STGenM' is ambiguous. It is defined * at src/System/Random/Stateful.hs:618:22 * at src/System/Random/Stateful.hs:618:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Stateful.hs:618:1 Warning: 'StateGenM' is ambiguous. It is defined * at src/System/Random/Internal.hs:606:20 * at src/System/Random/Internal.hs:606:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:606:1 Warning: 'IOGenM' is ambiguous. It is defined * at src/System/Random/Stateful.hs:542:20 * at src/System/Random/Stateful.hs:542:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Stateful.hs:542:1 Warning: 'AtomicGenM' is ambiguous. It is defined * at src/System/Random/Stateful.hs:428:24 * at src/System/Random/Stateful.hs:428:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Stateful.hs:428:1 Warning: 'Seed' is ambiguous. It is defined * at src/System/Random/Internal.hs:134:18 * at src/System/Random/Internal.hs:134:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:134:1 Warning: 'StdGen' is ambiguous. It is defined * at src/System/Random/Internal.hs:749:18 * at src/System/Random/Internal.hs:749:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Internal.hs:749:1 Warning: 'IOGen' is ambiguous. It is defined * at src/System/Random/Stateful.hs:547:19 * at src/System/Random/Stateful.hs:547:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Stateful.hs:547:1 Warning: 'STGenM' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'STM' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'STGen' is ambiguous. It is defined * at src/System/Random/Stateful.hs:623:19 * at src/System/Random/Stateful.hs:623:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/System/Random/Stateful.hs:623:1 Warning: 'clearBit' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'testBit' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 100% (137 /137) in 'System.Random.Stateful' Warning: System.Random: could not find link destinations for: - System.Random.GFinite.cardinality - System.Random.GFinite.toFinite - System.Random.GFinite.fromFinite - System.Random.GFinite.Cardinality - System.Random.Seed.D:R:SeedSizeSMGen - System.Random.Seed.D:R:SeedSizeSMGen0 - System.Random.Seed.D:R:SeedSizeStateGen - System.Random.Seed.D:R:SeedSizeStdGen - System.Random.Stateful.D:R:SeedSizeAtomicGen - System.Random.Stateful.D:R:SeedSizeIOGen - System.Random.Stateful.D:R:SeedSizeSTGen - System.Random.Stateful.D:R:SeedSizeTGen Warning: System.Random.Stateful: could not find link destinations for: - System.Random.GFinite.GFinite - System.Random.GFinite.cardinality - System.Random.GFinite.toFinite - System.Random.GFinite.fromFinite - System.Random.GFinite.Cardinality - System.Random.Internal.GUniformRange - System.Random.Internal.GUniform - System.Random.Internal.D:R:MutableGenStateGenm - System.Random.Seed.D:R:SeedSizeSMGen - System.Random.Seed.D:R:SeedSizeSMGen0 - System.Random.Seed.D:R:SeedSizeStateGen - System.Random.Seed.D:R:SeedSizeStdGen - System.Random.Stateful.D:R:MutableGenAtomicGenm - System.Random.Stateful.D:R:SeedSizeAtomicGen - System.Random.Stateful.D:R:MutableGenIOGenm - System.Random.Stateful.D:R:SeedSizeIOGen - System.Random.Stateful.D:R:MutableGenSTGenST - System.Random.Stateful.D:R:SeedSizeSTGen - System.Random.Stateful.D:R:MutableGenTGenSTM - System.Random.Stateful.D:R:SeedSizeTGen Documentation created: dist/doc/html/random/, dist/doc/html/random/random.txt Installing library in /var/lib/hackage-doc-builder/build-cache/tmp-install/lib/x86_64-linux-ghc-9.8.4/random-1.3.1-3HmCudIQHVrG4RNMrw37d7 Completed random-1.3.1 Configuring QuickCheck-2.17.1.0... Preprocessing library for QuickCheck-2.17.1.0.. Building library for QuickCheck-2.17.1.0.. [ 1 of 17] Compiling Test.QuickCheck.Exception ( src/Test/QuickCheck/Exception.hs, dist/build/Test/QuickCheck/Exception.o, dist/build/Test/QuickCheck/Exception.dyn_o ) [ 2 of 17] Compiling Test.QuickCheck.Random ( src/Test/QuickCheck/Random.hs, dist/build/Test/QuickCheck/Random.o, dist/build/Test/QuickCheck/Random.dyn_o ) [ 3 of 17] Compiling Test.QuickCheck.Gen ( src/Test/QuickCheck/Gen.hs, dist/build/Test/QuickCheck/Gen.o, dist/build/Test/QuickCheck/Gen.dyn_o ) [ 4 of 17] Compiling Test.QuickCheck.Gen.Unsafe ( src/Test/QuickCheck/Gen/Unsafe.hs, dist/build/Test/QuickCheck/Gen/Unsafe.o, dist/build/Test/QuickCheck/Gen/Unsafe.dyn_o ) [ 5 of 17] Compiling Test.QuickCheck.Arbitrary ( src/Test/QuickCheck/Arbitrary.hs, dist/build/Test/QuickCheck/Arbitrary.o, dist/build/Test/QuickCheck/Arbitrary.dyn_o ) [ 6 of 17] Compiling Test.QuickCheck.Poly ( src/Test/QuickCheck/Poly.hs, dist/build/Test/QuickCheck/Poly.o, dist/build/Test/QuickCheck/Poly.dyn_o ) [ 7 of 17] Compiling Test.QuickCheck.Modifiers ( src/Test/QuickCheck/Modifiers.hs, dist/build/Test/QuickCheck/Modifiers.o, dist/build/Test/QuickCheck/Modifiers.dyn_o ) [ 8 of 17] Compiling Test.QuickCheck.Function ( src/Test/QuickCheck/Function.hs, dist/build/Test/QuickCheck/Function.o, dist/build/Test/QuickCheck/Function.dyn_o ) [ 9 of 17] Compiling Test.QuickCheck.Text ( src/Test/QuickCheck/Text.hs, dist/build/Test/QuickCheck/Text.o, dist/build/Test/QuickCheck/Text.dyn_o ) [10 of 17] Compiling Test.QuickCheck.State ( src/Test/QuickCheck/State.hs, dist/build/Test/QuickCheck/State.o, dist/build/Test/QuickCheck/State.dyn_o ) [11 of 17] Compiling Test.QuickCheck.Property ( src/Test/QuickCheck/Property.hs, dist/build/Test/QuickCheck/Property.o, dist/build/Test/QuickCheck/Property.dyn_o ) [12 of 17] Compiling Test.QuickCheck.Test ( src/Test/QuickCheck/Test.hs, dist/build/Test/QuickCheck/Test.o, dist/build/Test/QuickCheck/Test.dyn_o ) [13 of 17] Compiling Test.QuickCheck.Monoids ( src/Test/QuickCheck/Monoids.hs, dist/build/Test/QuickCheck/Monoids.o, dist/build/Test/QuickCheck/Monoids.dyn_o ) [14 of 17] Compiling Test.QuickCheck.Monadic ( src/Test/QuickCheck/Monadic.hs, dist/build/Test/QuickCheck/Monadic.o, dist/build/Test/QuickCheck/Monadic.dyn_o ) [15 of 17] Compiling Test.QuickCheck.All ( src/Test/QuickCheck/All.hs, dist/build/Test/QuickCheck/All.o, dist/build/Test/QuickCheck/All.dyn_o ) [16 of 17] Compiling Test.QuickCheck.Features ( src/Test/QuickCheck/Features.hs, dist/build/Test/QuickCheck/Features.o, dist/build/Test/QuickCheck/Features.dyn_o ) [17 of 17] Compiling Test.QuickCheck ( src/Test/QuickCheck.hs, dist/build/Test/QuickCheck.o, dist/build/Test/QuickCheck.dyn_o ) Preprocessing library for QuickCheck-2.17.1.0.. Running Haddock on library for QuickCheck-2.17.1.0.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. [ 1 of 17] Compiling Test.QuickCheck.Exception ( src/Test/QuickCheck/Exception.hs, nothing ) [ 2 of 17] Compiling Test.QuickCheck.Random ( src/Test/QuickCheck/Random.hs, nothing ) [ 3 of 17] Compiling Test.QuickCheck.Gen ( src/Test/QuickCheck/Gen.hs, nothing ) [ 4 of 17] Compiling Test.QuickCheck.Gen.Unsafe ( src/Test/QuickCheck/Gen/Unsafe.hs, nothing ) [ 5 of 17] Compiling Test.QuickCheck.Arbitrary ( src/Test/QuickCheck/Arbitrary.hs, nothing ) [ 6 of 17] Compiling Test.QuickCheck.Poly ( src/Test/QuickCheck/Poly.hs, nothing ) [ 7 of 17] Compiling Test.QuickCheck.Modifiers ( src/Test/QuickCheck/Modifiers.hs, nothing ) [ 8 of 17] Compiling Test.QuickCheck.Function ( src/Test/QuickCheck/Function.hs, nothing ) [ 9 of 17] Compiling Test.QuickCheck.Text ( src/Test/QuickCheck/Text.hs, nothing ) [10 of 17] Compiling Test.QuickCheck.State ( src/Test/QuickCheck/State.hs, nothing ) [11 of 17] Compiling Test.QuickCheck.Property ( src/Test/QuickCheck/Property.hs, nothing ) [12 of 17] Compiling Test.QuickCheck.Test ( src/Test/QuickCheck/Test.hs, nothing ) [13 of 17] Compiling Test.QuickCheck.Monoids ( src/Test/QuickCheck/Monoids.hs, nothing ) [14 of 17] Compiling Test.QuickCheck.Monadic ( src/Test/QuickCheck/Monadic.hs, nothing ) [15 of 17] Compiling Test.QuickCheck.All ( src/Test/QuickCheck/All.hs, nothing ) [16 of 17] Compiling Test.QuickCheck.Features ( src/Test/QuickCheck/Features.hs, nothing ) [17 of 17] Compiling Test.QuickCheck ( src/Test/QuickCheck.hs, nothing ) Haddock coverage: 92% ( 35 / 38) in 'Test.QuickCheck.Gen' Missing documentation for: chooseWord64 (src/Test/QuickCheck/Gen.hs:210) chooseInt64 (src/Test/QuickCheck/Gen.hs:219) chooseUpTo (src/Test/QuickCheck/Gen.hs:229) 80% ( 4 / 5) in 'Test.QuickCheck.Gen.Unsafe' Missing documentation for: Capture (src/Test/QuickCheck/Gen/Unsafe.hs:52) Warning: '(:*:)' is ambiguous. It is defined * in GHC.Generics * in GHC.Generics You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in GHC.Generics Warning: 'Version' is ambiguous. It is defined * in Data.Version * in Data.Version You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in Data.Version 88% ( 45 / 51) in 'Test.QuickCheck.Arbitrary' Missing documentation for: arbitrary1 (src/Test/QuickCheck/Arbitrary.hs:340) shrink1 (src/Test/QuickCheck/Arbitrary.hs:343) arbitrary2 (src/Test/QuickCheck/Arbitrary.hs:352) shrink2 (src/Test/QuickCheck/Arbitrary.hs:355) RecursivelyShrink (src/Test/QuickCheck/Arbitrary.hs:367) GSubterms (src/Test/QuickCheck/Arbitrary.hs:398) Warning: 'A' is ambiguous. It is defined * at src/Test/QuickCheck/Poly.hs:29:13 * at src/Test/QuickCheck/Poly.hs:29:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Poly.hs:29:1 Warning: 'B' is ambiguous. It is defined * at src/Test/QuickCheck/Poly.hs:44:13 * at src/Test/QuickCheck/Poly.hs:44:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Poly.hs:44:1 Warning: 'C' is ambiguous. It is defined * at src/Test/QuickCheck/Poly.hs:59:13 * at src/Test/QuickCheck/Poly.hs:59:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Poly.hs:59:1 Warning: 'OrdA' is ambiguous. It is defined * at src/Test/QuickCheck/Poly.hs:77:16 * at src/Test/QuickCheck/Poly.hs:77:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Poly.hs:77:1 Warning: 'OrdB' is ambiguous. It is defined * at src/Test/QuickCheck/Poly.hs:112:16 * at src/Test/QuickCheck/Poly.hs:112:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Poly.hs:112:1 Warning: 'OrdC' is ambiguous. It is defined * at src/Test/QuickCheck/Poly.hs:146:16 * at src/Test/QuickCheck/Poly.hs:146:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Poly.hs:146:1 14% ( 1 / 7) in 'Test.QuickCheck.Poly' Missing documentation for: A (src/Test/QuickCheck/Poly.hs:29) B (src/Test/QuickCheck/Poly.hs:44) C (src/Test/QuickCheck/Poly.hs:59) OrdA (src/Test/QuickCheck/Poly.hs:77) OrdB (src/Test/QuickCheck/Poly.hs:112) OrdC (src/Test/QuickCheck/Poly.hs:146) Warning: 'Blind' is ambiguous. It is defined * at src/Test/QuickCheck/Modifiers.hs:94:19 * at src/Test/QuickCheck/Modifiers.hs:94:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Modifiers.hs:94:1 Warning: 'NonNegative' is ambiguous. It is defined * at src/Test/QuickCheck/Modifiers.hs:312:25 * at src/Test/QuickCheck/Modifiers.hs:312:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Modifiers.hs:312:1 Warning: 'Large' is ambiguous. It is defined * at src/Test/QuickCheck/Modifiers.hs:351:19 * at src/Test/QuickCheck/Modifiers.hs:351:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Modifiers.hs:351:1 95% ( 22 / 23) in 'Test.QuickCheck.Modifiers' Missing documentation for: ShrinkState (src/Test/QuickCheck/Modifiers.hs:487) Warning: 'Fun' is ambiguous. It is defined * at src/Test/QuickCheck/Function.hs:548:16 * at src/Test/QuickCheck/Function.hs:548:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Function.hs:548:1 100% ( 22 / 22) in 'Test.QuickCheck.Function' Warning: 'Discard' is ambiguous. It is defined * at src/Test/QuickCheck/Property.hs:114:16 * at src/Test/QuickCheck/Property.hs:114:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Property.hs:114:1 Warning: 'Confidence' is ambiguous. It is defined * at src/Test/QuickCheck/State.hs:68:3 * at src/Test/QuickCheck/State.hs:67:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/State.hs:67:1 66% ( 2 / 3) in 'Test.QuickCheck.Monoids' Missing documentation for: Module header 83% ( 20 / 24) in 'Test.QuickCheck.Monadic' Missing documentation for: stop (src/Test/QuickCheck/Monadic.hs:156) monadic (src/Test/QuickCheck/Monadic.hs:265) monadic' (src/Test/QuickCheck/Monadic.hs:268) runSTGen (src/Test/QuickCheck/Monadic.hs:307) 90% ( 10 / 11) in 'Test.QuickCheck.All' Missing documentation for: runQuickCheckAll (src/Test/QuickCheck/All.hs:220) Warning: 'Fun' is ambiguous. It is defined * at src/Test/QuickCheck/Function.hs:548:16 * at src/Test/QuickCheck/Function.hs:548:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Function.hs:548:1 Warning: 'Blind' is ambiguous. It is defined * at src/Test/QuickCheck/Modifiers.hs:94:19 * at src/Test/QuickCheck/Modifiers.hs:94:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Modifiers.hs:94:1 Warning: 'NonNegative' is ambiguous. It is defined * at src/Test/QuickCheck/Modifiers.hs:312:25 * at src/Test/QuickCheck/Modifiers.hs:312:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at src/Test/QuickCheck/Modifiers.hs:312:1 96% (203 /211) in 'Test.QuickCheck' Missing documentation for: arbitrary1 (src/Test/QuickCheck/Arbitrary.hs:340) shrink1 (src/Test/QuickCheck/Arbitrary.hs:343) arbitrary2 (src/Test/QuickCheck/Arbitrary.hs:352) shrink2 (src/Test/QuickCheck/Arbitrary.hs:355) ShrinkState (src/Test/QuickCheck/Modifiers.hs:487) Witness (src/Test/QuickCheck/Property.hs:262) coerceWitness (src/Test/QuickCheck/Property.hs:268) castWitness (src/Test/QuickCheck/Property.hs:273) Warning: Test.QuickCheck.Gen: could not find link destinations for: - Test.QuickCheck.Random.QCGen Warning: Test.QuickCheck.Arbitrary: could not find link destinations for: - Test.QuickCheck.Arbitrary.GCoArbitrary - Test.QuickCheck.Arbitrary.GSubtermsIncl - Test.QuickCheck.Arbitrary.gSubterms - Test.QuickCheck.Arbitrary.grecursivelyShrink Warning: Test.QuickCheck.Modifiers: could not find link destinations for: - Test.QuickCheck.Modifiers.InfiniteListInternalData Warning: Test.QuickCheck.Function: could not find link destinations for: - Test.QuickCheck.Function.Shrunk - Test.QuickCheck.Function.GFunction Warning: Test.QuickCheck: could not find link destinations for: - Test.QuickCheck.Exception.AnException - Test.QuickCheck.Random.QCGen - Test.QuickCheck.Arbitrary.GCoArbitrary - Test.QuickCheck.Modifiers.InfiniteListInternalData - Test.QuickCheck.Function.Shrunk - Test.QuickCheck.Function.GFunction - Test.QuickCheck.Property.Result Documentation created: dist/doc/html/QuickCheck/, dist/doc/html/QuickCheck/QuickCheck.txt Installing library in /var/lib/hackage-doc-builder/build-cache/tmp-install/lib/x86_64-linux-ghc-9.8.4/QuickCheck-2.17.1.0-8ihKiwMWfiD12yHjrGJURG Completed QuickCheck-2.17.1.0 Downloading HaLeX-1.3.0 Downloaded HaLeX-1.3.0 Configuring HaLeX-1.3.0... Preprocessing executable 'halex' for HaLeX-1.3.0.. Building executable 'halex' for HaLeX-1.3.0.. [ 1 of 14] Compiling Language.HaLex.Parser ( HaLeX_lib/Language/HaLex/Parser.hs, dist/build/halex/halex-tmp/Language/HaLex/Parser.o ) HaLeX_lib/Language/HaLex/Parser.hs:42:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 42 | satisfy p [] = [] | ^ HaLeX_lib/Language/HaLex/Parser.hs:62:4: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: (<*>) :: (t1 -> [(t2 -> a, t3)]) -> (t3 -> [(t2, b)]) -> t1 -> [(a, b)] | 62 | (p <*> q) xs = [ ( f z , zs ) | ^^^ HaLeX_lib/Language/HaLex/Parser.hs:67:4: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: (<$>) :: (t1 -> a) -> (t2 -> [(t1, b)]) -> t2 -> [(a, b)] | 67 | (f <$> p) xs = [(f y, ys) | (y,ys) <- p xs ] | ^^^ [ 2 of 14] Compiling Language.HaLex.Util ( HaLeX_lib/Language/HaLex/Util.hs, dist/build/halex/halex-tmp/Language/HaLex/Util.o ) HaLeX_lib/Language/HaLex/Util.hs:55:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: insAtPos :: (Eq t1, Num t1) => t1 -> t2 -> [t2] -> [t2] | 55 | insAtPos 1 e l = e : l | ^^^^^^^^ HaLeX_lib/Language/HaLex/Util.hs:55:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for insAtPos: Patterns of type t, t, [t] not matched: p _ [] where p is not one of {1} | 55 | insAtPos 1 e l = e : l | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 3 of 14] Compiling Language.HaLex.RegExp ( HaLeX_lib/Language/HaLex/RegExp.hs, dist/build/halex/halex-tmp/Language/HaLex/RegExp.o ) HaLeX_lib/Language/HaLex/RegExp.hs:72:27: warning: [GHC-63397] [-Wname-shadowing] This binding for or shadows the existing binding imported from Prelude at HaLeX_lib/Language/HaLex/RegExp.hs:21:8-28 (and originally defined in Data.Foldable) | 72 | cataRegExp (empty,epsilon,or,star,lit,th,one,opt,set) = cata | ^^ HaLeX_lib/Language/HaLex/RegExp.hs:95:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for matchesRE: Patterns of type RegExp sy, [sy] not matched: (OneOrMore _) _ (Optional _) _ (RESet _) _ | 95 | matchesRE Empty inp = False | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/RegExp.hs:95:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: inp | 95 | matchesRE Empty inp = False | ^^^ HaLeX_lib/Language/HaLex/RegExp.hs:147:38: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 147 | sizeRegExp = cataRegExp (0,0,(+),id,\x -> 1,(+),id,id,length) | ^ HaLeX_lib/Language/HaLex/RegExp.hs:184:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: n | 184 | showsPrec n (Star e) = showsPrec 10 e . showChar '*' | ^ HaLeX_lib/Language/HaLex/RegExp.hs:201:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: isSymbol :: Char -> Bool | 201 | isSymbol x = x `elem` "|? " | ^^^^^^^^ HaLeX_lib/Language/HaLex/RegExp.hs:201:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: isSymbol | 201 | isSymbol x = x `elem` "|? " | ^^^^^^^^ HaLeX_lib/Language/HaLex/RegExp.hs:233:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 233 | simplifyRegExp a@(Or x y) | ^ [ 4 of 14] Compiling Language.HaLex.RegExpParser ( HaLeX_lib/Language/HaLex/RegExpParser.hs, dist/build/halex/halex-tmp/Language/HaLex/RegExpParser.o ) HaLeX_lib/Language/HaLex/RegExpParser.hs:37:44: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 37 | | otherwise = Just (fst (head parsed_re)) | ^^^^ HaLeX_lib/Language/HaLex/RegExpParser.hs:62:44: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 62 | <|> g <$> symbol '\'' <*> satisfy (\ x -> True) <*> symbol '\'' | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:70:10: warning: [GHC-63397] [-Wname-shadowing] This binding for l shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExpParser.hs:71:6 | 70 | k _ l _ = RESet (concat l) | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:71:12: warning: [GHC-63397] [-Wname-shadowing] This binding for l shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExpParser.hs:71:6 | 71 | l _ _ l _ = RESet [ x | x <- ascii | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:89:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: setRegExp | 89 | setRegExp a b = foldr1 Or (map Literal [a..b]) | ^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpParser.hs:104:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: spaces | 104 | spaces = (\ _ _ -> ()) <$> symbol ' ' <*> spaces | ^^^^^^ [ 5 of 14] Compiling Language.HaLex.Dfa ( HaLeX_lib/Language/HaLex/Dfa.hs, dist/build/halex/halex-tmp/Language/HaLex/Dfa.o ) HaLeX_lib/Language/HaLex/Dfa.hs:87:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 87 | dfawalk delta s [] = s | ^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:98:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfaaccept' | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:98:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:98:19: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:108:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 108 | dfaaccept (Dfa v q s z delta) simb = (foldl delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:108:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 108 | dfaaccept (Dfa v q s z delta) simb = (foldl delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:118:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 118 | showsPrec p (Dfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/Dfa.hs:225:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 225 | transitionTableDfa (Dfa v q s z delta) = sort [ ( aq , av , delta aq av) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:225:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 225 | transitionTableDfa (Dfa v q s z delta) = sort [ ( aq , av , delta aq av) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:243:30: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 243 | transitionTableDfa' (Dfa v q s z delta) = sort [ ( aq , map (delta aq) v ) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:243:32: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 243 | transitionTableDfa' (Dfa v q s z delta) = sort [ ( aq , map (delta aq) v ) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookUptt: Patterns of type t, t, [(t, t1, c)] not matched: _ _ [] | 266 | lookUptt q v ((a,b,c) : []) = c | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa.hs:266:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:26: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:286:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookupSt: Patterns of type st, [(st, [Int])] not matched: _ [] | 286 | lookupSt s (h:t) | fst h == s = snd h | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa.hs:290:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookupNewSt: Patterns of type [Int], [(st, [Int])] not matched: _ [] | 290 | lookupNewSt s (h:t) | snd h == s = fst h | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa.hs:294:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: qaux | 294 | getNewFinalSt [] qaux = [] | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:301:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: i | 301 | giveNumber [] i = [] | ^ HaLeX_lib/Language/HaLex/Dfa.hs:341:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 341 | dfa2tdfa (Dfa v q s z delta) = limit (dfa2tdfaStep delta v') tbFstRow | ^ HaLeX_lib/Language/HaLex/Dfa.hs:341:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 341 | dfa2tdfa (Dfa v q s z delta) = limit (dfa2tdfaStep delta v') tbFstRow | ^ HaLeX_lib/Language/HaLex/Dfa.hs:382:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 382 | renameDfa dfa@(Dfa v q s z delta) istid = Dfa v' q' s' z' delta' | ^ HaLeX_lib/Language/HaLex/Dfa.hs:382:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 382 | renameDfa dfa@(Dfa v q s z delta) istid = Dfa v' q' s' z' delta' | ^ HaLeX_lib/Language/HaLex/Dfa.hs:388:46: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 388 | z' = sort $ map snd (filter (\(a,b) -> a `elem` z) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:396:52: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 396 | newStsOfTable tb ini = newStsOfTableAux tb [(fst $ head tb,ini)] | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:400:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 400 | newStsOfTableAux ((st,sts):t) newSt = newSt'' | ^^ HaLeX_lib/Language/HaLex/Dfa.hs:409:52: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 409 | where newSt' = procrhsSts sts ((st,( snd $ head newSt) + 1) : newSt) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:411:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: lookupNewSts :: (Eq a, Eq b) => (a -> p -> a) -> b -> p -> [(a, b)] -> b | 411 | lookupNewSts delta newSt sy newSts = getNewSt newOldSt newSts | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: getNewSt :: Eq a => a -> [(a, b)] -> b | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:31: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:49: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:415:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: getOldSt :: Eq a1 => a1 -> [(a2, a1)] -> a2 | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:415:31: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:415:47: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:447:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 447 | dfadeadstates (Dfa v qs s z d) = filter (isStDead d v z) qs | ^ [ 6 of 14] Compiling Language.HaLex.Ndfa ( HaLeX_lib/Language/HaLex/Ndfa.hs, dist/build/halex/halex-tmp/Language/HaLex/Ndfa.o ) HaLeX_lib/Language/HaLex/Ndfa.hs:53:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Dfa is redundant except perhaps to import instances from Language.HaLex.Dfa To import instances alone, use: import Language.HaLex.Dfa() | 53 | import Language.HaLex.Dfa | ^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:92:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 92 | ndfawalk delta sts [] = sts | ^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:104:8: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 104 | delta' delta [] sy = [] | ^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:104:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: sy | 104 | delta' delta [] sy = [] | ^^ HaLeX_lib/Language/HaLex/Ndfa.hs:123:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 123 | showsPrec p (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:138:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showNdfaDelta :: (Eq a1, Show a2, Show a3, Show a1) => [a2] -> [a3] -> (a2 -> Maybe a3 -> [a1]) -> String -> String | 138 | showNdfaDelta q v d = foldr (.) (showChar '\n') f | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:228:33: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 228 | transitionTableNdfa (Ndfa vs qs s z delta) = [ (q,Just v,r) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:228:35: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 228 | transitionTableNdfa (Ndfa vs qs s z delta) = [ (q,Just v,r) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:254:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookupTT: Patterns of type t, t, [(t, t1, a)] not matched: _ _ [] | 254 | lookupTT st sy ((a,b,c) : []) | st == a && sy == b = [c] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Ndfa.hs:282:28: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 282 | lookupFst nsts ost = snd $ head (filter (\ (a,b) -> a == ost) nsts) | ^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:282:47: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 282 | lookupFst nsts ost = snd $ head (filter (\ (a,b) -> a == ost) nsts) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:286:28: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 286 | lookupSnd nsts nst = fst $ head (filter (\ (a,b) -> b == nst) nsts) | ^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:286:45: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 286 | lookupSnd nsts nst = fst $ head (filter (\ (a,b) -> b == nst) nsts) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:299:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 299 | ndfadeadstates (Ndfa v qs s z d) = filter (ndfaIsStDead d v z) qs | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:308:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 308 | ndfasyncstates (Ndfa v qs s z d) = filter (ndfaIsSyncState d v z) qs | ^ [ 7 of 14] Compiling Language.HaLex.FaOperations ( HaLeX_lib/Language/HaLex/FaOperations.hs, dist/build/halex/halex-tmp/Language/HaLex/FaOperations.o ) HaLeX_lib/Language/HaLex/FaOperations.hs:75:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:75:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:75:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:79:20: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 79 | s' = fst (head tt) | ^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 99 | lookupCT st sy [] v = [] | ^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:13: warning: [GHC-40910] [-Wunused-matches] Defined but not used: sy | 99 | lookupCT st sy [] v = [] | ^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 99 | lookupCT st sy [] v = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:102:10: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type Maybe Int not matched: Nothing | 102 | where (Just col) = elemIndex sy v | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:110:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 110 | ndfa2ct (Ndfa v q s z delta) = limit (ndfa2dfaStep delta v) ttFstRow | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:110:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 110 | ndfa2ct (Ndfa v q s z delta) = limit (ndfa2dfaStep delta v) ttFstRow | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa2ct' | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa2ctstep' | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:152:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:151:17 | 152 | where delta' q (Just a) = [delta q a] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:153:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 153 | delta' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:153:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:151:17 | 153 | delta' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:173:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:170:12 | 173 | where dp' q Nothing = (dp q Nothing) `union` sq | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:174:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:170:12 | 174 | dp' q sy = dp q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:185:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for d': Patterns of type b not matched: _ | 185 | d' q | q `elem` qp = dp q | ^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/FaOperations.hs:196:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 196 | where ds' q Nothing = z `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:197:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 197 | ds' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:199:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 199 | dz' q Nothing = s `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:200:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 200 | dz' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:209:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:207:12 | 209 | where dz' q Nothing = s `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:210:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:207:12 | 210 | dz' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:232:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for d': Patterns of type b not matched: _ | 232 | d' q | q `elem` zp = dz' q | ^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/FaOperations.hs:235:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 235 | where dz' q Nothing = [sq] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:235:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 235 | where dz' q Nothing = [sq] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:236:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 236 | dz' q (Just y) | y `elem` vp = [dp q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:239:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 239 | dp' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:239:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 239 | dp' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:240:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 240 | dp' q (Just y) | y `elem` vp = [dp q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:243:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 243 | dq' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:243:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 243 | dq' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:244:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 244 | dq' q (Just y) | y `elem` vq = [dq q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:266:12: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:265:16 | 266 | where d' q | q == s = ds' q | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:269:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 269 | where ds' q Nothing = z | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:269:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 269 | where ds' q Nothing = z | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:270:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 270 | ds' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:272:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 272 | dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:272:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 272 | dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:273:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 273 | dz' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:275:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 275 | dd' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:283:12: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:282:16 | 283 | where d' q | q `elem` z = dz' q | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:285:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 285 | where dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:285:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 285 | where dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:286:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 286 | dz' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:288:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 288 | dd' q (Just y) = [d q y] | ^ [ 8 of 14] Compiling Language.HaLex.RegExp2Fa ( HaLeX_lib/Language/HaLex/RegExp2Fa.hs, dist/build/halex/halex-tmp/Language/HaLex/RegExp2Fa.o ) HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:63:22 | 70 | delta' q | q `elem` qp = if q `elem` zp then dp' q | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:73:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16 | 73 | where dp' q Nothing = (dp q Nothing) `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:74:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16 | 74 | dp' q (Just aa) = dp q (Just aa) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:76:20 | 83 | delta' q | q `elem` s' = dd q | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:89:19: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 89 | where dd q Nothing = sp `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:89:19: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 89 | where dd q Nothing = sp `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:92:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 92 | ddp' q Nothing = z' `union` (dp q Nothing) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:95:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 95 | ddq' q Nothing = z' `union` (dq q Nothing) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:109:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 109 | where dd q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:109:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:106:16 | 109 | where dd q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:112:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 112 | dd' q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:112:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:106:16 | 112 | dd' q Nothing = sp `union` z' | ^ [ 9 of 14] Compiling Language.HaLex.Minimize ( HaLeX_lib/Language/HaLex/Minimize.hs, dist/build/halex/halex-tmp/Language/HaLex/Minimize.o ) HaLeX_lib/Language/HaLex/Minimize.hs:108:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: removeinaccessible :: (Ord st, Ord sy) => Dfa st sy -> Dfa st sy | 108 | removeinaccessible dfa@(Dfa v s i f d) = Dfa v states i (f `intersect` states) d | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:108:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 108 | removeinaccessible dfa@(Dfa v s i f d) = Dfa v states i (f `intersect` states) d | ^ HaLeX_lib/Language/HaLex/Minimize.hs:114:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: removeinaccessible' :: (Ord st, Eq sy) => Dfa st sy -> Dfa [st] sy | 114 | removeinaccessible' a = ndfa2dfa . dfa2ndfa $ a | ^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:114:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: removeinaccessible' | 114 | removeinaccessible' a = ndfa2dfa . dfa2ndfa $ a | ^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:128:13: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 128 | Dfa t l (head (filter (\x->elem si x) l)) | ^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:133:49: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 133 | ndelta st s | elem st l = rfind (d (head st) s) l | ^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:189:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 189 | delta' st Nothing = [] | ^^ [10 of 14] Compiling Language.HaLex.FaAsDiGraph ( HaLeX_lib/Language/HaLex/FaAsDiGraph.hs, dist/build/halex/halex-tmp/Language/HaLex/FaAsDiGraph.o ) HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:31:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp is redundant except perhaps to import instances from Language.HaLex.RegExp To import instances alone, use: import Language.HaLex.RegExp() | 31 | import Language.HaLex.RegExp | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:32:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp2Fa is redundant except perhaps to import instances from Language.HaLex.RegExp2Fa To import instances alone, use: import Language.HaLex.RegExp2Fa() | 32 | import Language.HaLex.RegExp2Fa | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:36:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Minimize is redundant except perhaps to import instances from Language.HaLex.Minimize To import instances alone, use: import Language.HaLex.Minimize() | 36 | import Language.HaLex.Minimize | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:40:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa2graphviz :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> [Char] | 40 | ndfa2graphviz ndfa name = tographviz ndfa name "circle" "LR" (show . show) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:43:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa2graphviz2file :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> IO () | 43 | ndfa2graphviz2file ndfa name = | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:48:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2graphviz :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] | 48 | dfa2graphviz dfa name = | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:52:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2graphviz2file :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> IO () | 52 | dfa2graphviz2file dfa name = writeFile (name++".dot") (dfa2graphviz dfa name) | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable t0 to type Integer in the following constraints (Show t0) arising from a use of mirroredInitialStates at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39-59 (Num t0) arising from a use of mirroredInitialStates at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39-59 " In the first argument of createInitialArrows, namely (mirroredInitialStates s 1) In the first argument of (++), namely (createInitialArrows (mirroredInitialStates s 1) s) In the second argument of (++), namely (createInitialArrows (mirroredInitialStates s 1) s) ++ "\n}" | 87 | ++ (createInitialArrows (mirroredInitialStates s 1) s) | ^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:96:23: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:26 | 96 | | q <- qs | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:102:23: warning: [GHC-63397] [-Wname-shadowing] This binding for s shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:28 | 102 | showInitialState s = (showState s) | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:108:29: warning: [GHC-63397] [-Wname-shadowing] This binding for z shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:30 | 108 | | z <- zs ] | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:116:28: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 116 | mirroredInitialStates (x:xs) n = ("\"_newState_" ++ (show n) ++ "\"") : | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:119:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for createInitialArrows: Patterns of type [[Char]], [st] not matched: [] (_:_) (_:_) [] | 119 | createInitialArrows [] [] = " " | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:135:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 135 | showNdfaArrows ndfa@(Ndfa v q s z delta) showState showLabel deadSt syncSt = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:135:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 135 | showNdfaArrows ndfa@(Ndfa v q s z delta) showState showLabel deadSt syncSt = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:151:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: groupMoves :: (Eq a, Eq sy) => [(a, Maybe sy, a)] -> [(a, [Maybe sy], a)] | 151 | groupMoves [] = [] | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:229:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphWithNoSyncSt :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] | 229 | dfa2DiGraphWithNoSyncSt dfa name = dfa2graphviz dfa name | ^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:231:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphIO :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] -> IO () | 231 | dfa2DiGraphIO dfa name fn = writeFile (fn++".gph") (dfa2graphviz dfa name ) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:231:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa2DiGraphIO | 231 | dfa2DiGraphIO dfa name fn = writeFile (fn++".gph") (dfa2graphviz dfa name ) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:233:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfaDiGraphWithNoSyncStIO :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> FilePath -> IO () | 233 | dfaDiGraphWithNoSyncStIO dfa name fn = writeFile fn (dfa2graphviz dfa name) | ^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:236:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphIO'' :: (Show sy, Ord st, Ord sy) => Dfa st sy -> [Char] -> IO () | 236 | dfa2DiGraphIO'' dfa name = dfa2DiGraphIO (beautifyDfa dfa) name name | ^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:236:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa2DiGraphIO'' | 236 | dfa2DiGraphIO'' dfa name = dfa2DiGraphIO (beautifyDfa dfa) name name | ^^^^^^^^^^^^^^^ [11 of 14] Compiling Language.HaLex.RegExpAsDiGraph ( HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs, dist/build/halex/halex-tmp/Language/HaLex/RegExpAsDiGraph.o ) HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 26 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:58:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph' :: (Show sy, Ord sy) => RegExp sy -> [Char] -> [Char] | 58 | re2DiGraph' re name = dfa2graphviz dfa name | ^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:61:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph'' :: (Show sy, Ord sy) => RegExp sy -> [Char] -> [Char] | 61 | re2DiGraph'' re name = dfa2graphviz dfa name | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:65:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph''' :: (Show sy, Eq sy) => RegExp sy -> [Char] -> [Char] | 65 | re2DiGraph''' re name = dfa2DiGraphWithNoSyncSt dfa name | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:68:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraphNdfa :: (Show sy, Eq sy) => RegExp sy -> [Char] -> [Char] | 68 | re2DiGraphNdfa re name = ndfa2graphviz ndfa name | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:73:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re2DiGraphIO | 73 | re2DiGraphIO er name = dfa2graphviz2file dfa name | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:77:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: absRe2DiGraph_File :: (Show sy, Eq sy) => RegExp sy -> [Char] -> IO () | 77 | absRe2DiGraph_File er name = | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:77:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: absRe2DiGraph_File | 77 | absRe2DiGraph_File er name = | ^^^^^^^^^^^^^^^^^^ [12 of 14] Compiling Language.HaLex.Equivalence ( HaLeX_lib/Language/HaLex/Equivalence.hs, dist/build/halex/halex-tmp/Language/HaLex/Equivalence.o ) HaLeX_lib/Language/HaLex/Equivalence.hs:76:40: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 76 | equivREs re = or (map (equivRE reFst) (tail re)) | ^^^^ HaLeX_lib/Language/HaLex/Equivalence.hs:77:17: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 77 | where reFst = head re | ^^^^ [13 of 14] Compiling Language.HaLex.Dfa2MDfa ( HaLeX_lib/Language/HaLex/Dfa2MDfa.hs, dist/build/halex/halex-tmp/Language/HaLex/Dfa2MDfa.o ) HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:19:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 19 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:21:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 21 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:28:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showAsAccumDfa :: (Show sy, Show st) => Dfa st sy -> String -> String | 28 | showAsAccumDfa (Dfa v q s z delta) = | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:48:5: warning: [GHC-63397] [-Wname-shadowing] This binding for f shadows the existing binding defined at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:108:1 | 48 | f = zipWith3 showF m n q' | ^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:74:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2MHaskellMod :: (Show sy, Ord sy) => RegExp sy -> Bool -> Bool -> [Char] | 74 | re2MHaskellMod re m b = "module GenMDfa where\n\n" ++ | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:84:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for re2MDfa: Patterns of type RegExp sy, Bool, Bool not matched: _ _ _ | 84 | re2MDfa re m b | ^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:108:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: f :: Maybe (RegExp sy) -> RegExp sy | 108 | f (Just p ) = p | ^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:116:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_int :: Dfa Integer Char | 116 | dfa_int = Dfa ['+','-','0','1'] | ^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:117:16: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable st0 to type Integer in the following constraints (Num st0) arising from the literal 1 at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:117:16 (Eq st0) arising from a use of delta at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:120:15-19 " In the expression: 1 In the second argument of Dfa, namely [1, 2, 3, 4] In the expression: Dfa ['+', '-', '0', '1'] [1, 2, 3, 4] 1 [3] delta | 117 | [1,2,3,4] | ^ [14 of 14] Compiling Main ( HaLeX_tool/halex.hs, dist/build/halex/halex-tmp/Main.o ) HaLeX_tool/halex.hs:33:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 33 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_tool/halex.hs:35:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.FaAsDiGraph is redundant except perhaps to import instances from Language.HaLex.FaAsDiGraph To import instances alone, use: import Language.HaLex.FaAsDiGraph() | 35 | import Language.HaLex.FaAsDiGraph | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_tool/halex.hs:36:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Parser is redundant except perhaps to import instances from Language.HaLex.Parser To import instances alone, use: import Language.HaLex.Parser() | 36 | import Language.HaLex.Parser | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_tool/halex.hs:84:45: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 84 | let (re,opts') = partition ((=='r') . head) o | ^^^^ HaLeX_tool/halex.hs:85:45: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 85 | let (fo,opts'') = partition ((=='o') . head) opts' | ^^^^ HaLeX_tool/halex.hs:86:10: warning: [GHC-40910] [-Wunused-local-binds] Defined but not used: output | 86 | let output = map tail re ++ repeat "" | ^^^^^^ HaLeX_tool/halex.hs:86:23: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 86 | let output = map tail re ++ repeat "" | ^^^^ HaLeX_tool/halex.hs:104:47: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 104 | absREs = map (\x -> parseRegExp (tail x)) re | ^^^^ HaLeX_tool/halex.hs:105:28: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a lambda abstraction: Patterns of type Maybe (RegExp Char) not matched: Nothing | 105 | let absREs' = map (\ (Just x) -> x) absREs | ^^^^^^^^^^^^^^^ HaLeX_tool/halex.hs:107:32: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a lambda abstraction: Patterns of type Maybe (RegExp Char) not matched: Nothing | 107 | let absREsFile' = map (\ (Just x) -> x) absREsFile | ^^^^^^^^^^^^^^^ HaLeX_tool/halex.hs:113:32: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 113 | then compileRegExp (head absRE_all) fileo opts | ^^^^ HaLeX_tool/halex.hs:120:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: compileFromStdIn :: Foldable t => [[Char]] -> t String -> IO () | 120 | compileFromStdIn fileo opts | ^^^^^^^^^^^^^^^^ HaLeX_tool/halex.hs:124:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: compileRegExp :: (Ord sy, Show sy, Foldable t) => RegExp sy -> [[Char]] -> t String -> IO () | 124 | compileRegExp re fileo opts | ^^^^^^^^^^^^^ HaLeX_tool/halex.hs:129:33: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 129 | else writeFile (tail (head fileo)) | ^^^^ HaLeX_tool/halex.hs:129:39: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 129 | else writeFile (tail (head fileo)) | ^^^^ [15 of 15] Linking dist/build/halex/halex Preprocessing library for HaLeX-1.3.0.. Building library for HaLeX-1.3.0.. [ 1 of 21] Compiling Language.HaLex.Parser ( HaLeX_lib/Language/HaLex/Parser.hs, dist/build/Language/HaLex/Parser.o, dist/build/Language/HaLex/Parser.dyn_o ) HaLeX_lib/Language/HaLex/Parser.hs:42:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 42 | satisfy p [] = [] | ^ HaLeX_lib/Language/HaLex/Parser.hs:62:4: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: (<*>) :: (t1 -> [(t2 -> a, t3)]) -> (t3 -> [(t2, b)]) -> t1 -> [(a, b)] | 62 | (p <*> q) xs = [ ( f z , zs ) | ^^^ HaLeX_lib/Language/HaLex/Parser.hs:67:4: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: (<$>) :: (t1 -> a) -> (t2 -> [(t1, b)]) -> t2 -> [(a, b)] | 67 | (f <$> p) xs = [(f y, ys) | (y,ys) <- p xs ] | ^^^ [ 2 of 21] Compiling Language.HaLex.Util ( HaLeX_lib/Language/HaLex/Util.hs, dist/build/Language/HaLex/Util.o, dist/build/Language/HaLex/Util.dyn_o ) HaLeX_lib/Language/HaLex/Util.hs:55:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: insAtPos :: (Eq t1, Num t1) => t1 -> t2 -> [t2] -> [t2] | 55 | insAtPos 1 e l = e : l | ^^^^^^^^ HaLeX_lib/Language/HaLex/Util.hs:55:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for insAtPos: Patterns of type t, t, [t] not matched: p _ [] where p is not one of {1} | 55 | insAtPos 1 e l = e : l | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 3 of 21] Compiling Language.HaLex.RegExp ( HaLeX_lib/Language/HaLex/RegExp.hs, dist/build/Language/HaLex/RegExp.o, dist/build/Language/HaLex/RegExp.dyn_o ) HaLeX_lib/Language/HaLex/RegExp.hs:72:27: warning: [GHC-63397] [-Wname-shadowing] This binding for or shadows the existing binding imported from Prelude at HaLeX_lib/Language/HaLex/RegExp.hs:21:8-28 (and originally defined in Data.Foldable) | 72 | cataRegExp (empty,epsilon,or,star,lit,th,one,opt,set) = cata | ^^ HaLeX_lib/Language/HaLex/RegExp.hs:95:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for matchesRE: Patterns of type RegExp sy, [sy] not matched: (OneOrMore _) _ (Optional _) _ (RESet _) _ | 95 | matchesRE Empty inp = False | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/RegExp.hs:95:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: inp | 95 | matchesRE Empty inp = False | ^^^ HaLeX_lib/Language/HaLex/RegExp.hs:147:38: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 147 | sizeRegExp = cataRegExp (0,0,(+),id,\x -> 1,(+),id,id,length) | ^ HaLeX_lib/Language/HaLex/RegExp.hs:184:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: n | 184 | showsPrec n (Star e) = showsPrec 10 e . showChar '*' | ^ HaLeX_lib/Language/HaLex/RegExp.hs:201:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: isSymbol :: Char -> Bool | 201 | isSymbol x = x `elem` "|? " | ^^^^^^^^ HaLeX_lib/Language/HaLex/RegExp.hs:201:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: isSymbol | 201 | isSymbol x = x `elem` "|? " | ^^^^^^^^ HaLeX_lib/Language/HaLex/RegExp.hs:233:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 233 | simplifyRegExp a@(Or x y) | ^ [ 4 of 21] Compiling Language.HaLex.RegExpParser ( HaLeX_lib/Language/HaLex/RegExpParser.hs, dist/build/Language/HaLex/RegExpParser.o, dist/build/Language/HaLex/RegExpParser.dyn_o ) HaLeX_lib/Language/HaLex/RegExpParser.hs:37:44: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 37 | | otherwise = Just (fst (head parsed_re)) | ^^^^ HaLeX_lib/Language/HaLex/RegExpParser.hs:62:44: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 62 | <|> g <$> symbol '\'' <*> satisfy (\ x -> True) <*> symbol '\'' | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:70:10: warning: [GHC-63397] [-Wname-shadowing] This binding for l shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExpParser.hs:71:6 | 70 | k _ l _ = RESet (concat l) | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:71:12: warning: [GHC-63397] [-Wname-shadowing] This binding for l shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExpParser.hs:71:6 | 71 | l _ _ l _ = RESet [ x | x <- ascii | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:89:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: setRegExp | 89 | setRegExp a b = foldr1 Or (map Literal [a..b]) | ^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpParser.hs:104:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: spaces | 104 | spaces = (\ _ _ -> ()) <$> symbol ' ' <*> spaces | ^^^^^^ [ 5 of 21] Compiling Language.HaLex.Dfa ( HaLeX_lib/Language/HaLex/Dfa.hs, dist/build/Language/HaLex/Dfa.o, dist/build/Language/HaLex/Dfa.dyn_o ) HaLeX_lib/Language/HaLex/Dfa.hs:87:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 87 | dfawalk delta s [] = s | ^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:98:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfaaccept' | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:98:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:98:19: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:108:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 108 | dfaaccept (Dfa v q s z delta) simb = (foldl delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:108:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 108 | dfaaccept (Dfa v q s z delta) simb = (foldl delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:118:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 118 | showsPrec p (Dfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/Dfa.hs:225:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 225 | transitionTableDfa (Dfa v q s z delta) = sort [ ( aq , av , delta aq av) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:225:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 225 | transitionTableDfa (Dfa v q s z delta) = sort [ ( aq , av , delta aq av) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:243:30: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 243 | transitionTableDfa' (Dfa v q s z delta) = sort [ ( aq , map (delta aq) v ) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:243:32: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 243 | transitionTableDfa' (Dfa v q s z delta) = sort [ ( aq , map (delta aq) v ) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookUptt: Patterns of type t, t, [(t, t1, c)] not matched: _ _ [] | 266 | lookUptt q v ((a,b,c) : []) = c | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa.hs:266:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:26: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:286:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookupSt: Patterns of type st, [(st, [Int])] not matched: _ [] | 286 | lookupSt s (h:t) | fst h == s = snd h | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa.hs:290:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookupNewSt: Patterns of type [Int], [(st, [Int])] not matched: _ [] | 290 | lookupNewSt s (h:t) | snd h == s = fst h | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa.hs:294:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: qaux | 294 | getNewFinalSt [] qaux = [] | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:301:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: i | 301 | giveNumber [] i = [] | ^ HaLeX_lib/Language/HaLex/Dfa.hs:341:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 341 | dfa2tdfa (Dfa v q s z delta) = limit (dfa2tdfaStep delta v') tbFstRow | ^ HaLeX_lib/Language/HaLex/Dfa.hs:341:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 341 | dfa2tdfa (Dfa v q s z delta) = limit (dfa2tdfaStep delta v') tbFstRow | ^ HaLeX_lib/Language/HaLex/Dfa.hs:382:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 382 | renameDfa dfa@(Dfa v q s z delta) istid = Dfa v' q' s' z' delta' | ^ HaLeX_lib/Language/HaLex/Dfa.hs:382:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 382 | renameDfa dfa@(Dfa v q s z delta) istid = Dfa v' q' s' z' delta' | ^ HaLeX_lib/Language/HaLex/Dfa.hs:388:46: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 388 | z' = sort $ map snd (filter (\(a,b) -> a `elem` z) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:396:52: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 396 | newStsOfTable tb ini = newStsOfTableAux tb [(fst $ head tb,ini)] | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:400:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 400 | newStsOfTableAux ((st,sts):t) newSt = newSt'' | ^^ HaLeX_lib/Language/HaLex/Dfa.hs:409:52: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 409 | where newSt' = procrhsSts sts ((st,( snd $ head newSt) + 1) : newSt) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:411:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: lookupNewSts :: (Eq a, Eq b) => (a -> p -> a) -> b -> p -> [(a, b)] -> b | 411 | lookupNewSts delta newSt sy newSts = getNewSt newOldSt newSts | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: getNewSt :: Eq a => a -> [(a, b)] -> b | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:31: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:49: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:415:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: getOldSt :: Eq a1 => a1 -> [(a2, a1)] -> a2 | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:415:31: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:415:47: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:447:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 447 | dfadeadstates (Dfa v qs s z d) = filter (isStDead d v z) qs | ^ [ 6 of 21] Compiling Language.HaLex.Ndfa ( HaLeX_lib/Language/HaLex/Ndfa.hs, dist/build/Language/HaLex/Ndfa.o, dist/build/Language/HaLex/Ndfa.dyn_o ) HaLeX_lib/Language/HaLex/Ndfa.hs:53:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Dfa is redundant except perhaps to import instances from Language.HaLex.Dfa To import instances alone, use: import Language.HaLex.Dfa() | 53 | import Language.HaLex.Dfa | ^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:92:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 92 | ndfawalk delta sts [] = sts | ^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:104:8: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 104 | delta' delta [] sy = [] | ^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:104:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: sy | 104 | delta' delta [] sy = [] | ^^ HaLeX_lib/Language/HaLex/Ndfa.hs:123:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 123 | showsPrec p (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:138:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showNdfaDelta :: (Eq a1, Show a2, Show a3, Show a1) => [a2] -> [a3] -> (a2 -> Maybe a3 -> [a1]) -> String -> String | 138 | showNdfaDelta q v d = foldr (.) (showChar '\n') f | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:228:33: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 228 | transitionTableNdfa (Ndfa vs qs s z delta) = [ (q,Just v,r) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:228:35: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 228 | transitionTableNdfa (Ndfa vs qs s z delta) = [ (q,Just v,r) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:254:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for lookupTT: Patterns of type t, t, [(t, t1, a)] not matched: _ _ [] | 254 | lookupTT st sy ((a,b,c) : []) | st == a && sy == b = [c] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Ndfa.hs:282:28: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 282 | lookupFst nsts ost = snd $ head (filter (\ (a,b) -> a == ost) nsts) | ^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:282:47: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 282 | lookupFst nsts ost = snd $ head (filter (\ (a,b) -> a == ost) nsts) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:286:28: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 286 | lookupSnd nsts nst = fst $ head (filter (\ (a,b) -> b == nst) nsts) | ^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:286:45: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 286 | lookupSnd nsts nst = fst $ head (filter (\ (a,b) -> b == nst) nsts) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:299:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 299 | ndfadeadstates (Ndfa v qs s z d) = filter (ndfaIsStDead d v z) qs | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:308:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 308 | ndfasyncstates (Ndfa v qs s z d) = filter (ndfaIsSyncState d v z) qs | ^ [ 7 of 21] Compiling Language.HaLex.DfaMonad ( HaLeX_lib/Language/HaLex/DfaMonad.lhs, dist/build/Language/HaLex/DfaMonad.o, dist/build/Language/HaLex/DfaMonad.dyn_o ) HaLeX_lib/Language/HaLex/DfaMonad.lhs:29:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 29 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:30:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 30 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:126:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 126 | showInDot dfa@(Dfa v q s z delta) t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:126:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 126 | showInDot dfa@(Dfa v q s z delta) t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:126:28: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 126 | showInDot dfa@(Dfa v q s z delta) t = | ^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:142:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showInitialState :: Show a => a -> String -> String | 142 | showInitialState s = showString("\"") . shows s . showChar('\"') . | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:146:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showFinalStates' :: Show a => [a] -> [[Char]] | 146 | showFinalStates' z = [ "\"" ++ (show f) ++ "\"" | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:151:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 151 | showArrows (Dfa v qs s z delta) dsts t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:151:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 151 | showArrows (Dfa v qs s z delta) dsts t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:183:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 183 | deadstates (Dfa v qs s z d) = deadstates' qs v d | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:183:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 183 | deadstates (Dfa v qs s z d) = deadstates' qs v d | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:209:15: warning: [GHC-40910] [-Wunused-matches] Defined but not used: e | 209 | where isin' e [] = [True] | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:227:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type String, String not matched: [] _ (p:_) _ where p is not one of {'C'} ['C'] _ ('C':p:_) _ where p is not one of {'0'} ... | 227 | delta "C0 sem pepita" "direita" = -- do putStrLn "Vou para C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/DfaMonad.lhs:227:5: warning: [GHC-61505] Pattern match checker ran into -fmax-pmcheck-models=30 limit, so " Redundant clauses might not be reported at all " Redundant clauses might be reported as inaccessible " Patterns reported as unmatched might actually be matched Suggested fix: Increase the limit or resolve the warnings to suppress this message. | 227 | delta "C0 sem pepita" "direita" = -- do putStrLn "Vou para C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/DfaMonad.lhs:245:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves :: [String] | 245 | moves = ["direita","pegar","esquerda","largar"] | ^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:246:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves2 :: [String] | 246 | moves2 = ["esquerda","pegar","direita","pegar","esquerda","largar"] | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:247:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves3 :: [String] | 247 | moves3 = ["esquerda","pegar","direita"] | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:248:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves4 :: [String] | 248 | moves4 = moves2 ++ moves ++ moves3 | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:250:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: acc :: Maybe Bool | 250 | acc = dfaaccept robot moves4 | ^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:270:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: varGlob :: IORef String | 270 | varGlob = unsafePerformIO $ newIORef "" | ^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:344:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type Char, Char not matched: p _ where p is not one of {'A', 'B'} 'A' p where p is not one of {'a', 'b'} 'B' p where p is not one of {'a'} | 344 | delta 'A' 'a' = do countA | ^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/DfaMonad.lhs:345:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in three further locations. Suggested fix: Please use spaces instead. | 345 | return 'A' | ^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:353:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept :: (Eq st, Num s) => Dfa (StateT s Data.Functor.Identity.Identity) st sy -> [sy] -> (Bool, s) | 353 | runAccept dfa str = runState (dfaaccept dfa str) 0 | ^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:373:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type Char, Char not matched: p _ where p is not one of {'A', 'B'} 'A' p where p is not one of {'a', 'b'} 'B' p where p is not one of {'a'} | 373 | delta 'A' 'a' = do modify (\ s -> 'a':s) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/DfaMonad.lhs:380:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_ex4 :: Eq st => Dfa (StateT String Data.Functor.Identity.Identity) st sy -> [sy] -> (Bool, String) | 380 | runAccept_ex4 dfa str = runState (dfaaccept dfa str) "" | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:400:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type Char, Char not matched: p _ where p is not one of {'A', 'B'} 'A' p where p is not one of {'a', 'b'} 'B' p where p is not one of {'a'} | 400 | delta 'A' 'a' = do { accum 'A' ; return 'A' } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/DfaMonad.lhs:406:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_ex5 :: [Char] -> (Bool, [Char]) | 406 | runAccept_ex5 str = runState (dfaaccept ex5 str) "" | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:429:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type a, Char not matched: p _ where p is not one of {3, 1, 2} 1 p where p is not one of {'d', '+', '-'} 2 p where p is not one of {'d'} 2 p where p is not one of {'d', '+', '-'} ... | 429 | delta 1 '+' = return 2 | ^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/DfaMonad.lhs:430:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumM | 430 | delta 1 '-' = do accumM | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:432:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumD | 432 | delta 1 'd' = do accumD | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:434:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumD | 434 | delta 2 'd' = do accumD | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:436:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumD | 436 | delta 3 'd' = do accumD | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:446:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_int :: [Char] -> (Bool, [Char]) | 446 | runAccept_int str = runState (dfaaccept ex_int str) "" | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:494:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_ex6 :: [Char] -> (Bool, ([Char], Int)) | 494 | runAccept_ex6 str = runState (dfaaccept ex6 str) ("",0::Int) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:557:5: warning: [GHC-63397] [-Wname-shadowing] This binding for init shadows the existing binding imported from Data.List at HaLeX_lib/Language/HaLex/DfaMonad.lhs:29:1-16 (and originally defined in GHC.List) | 557 | init = state f | ^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:567:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_te :: [Char] -> (Bool, ([Char], [Code])) | 567 | runAccept_te str = runState (dfaaccept te str) ("",[]) | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:611:5: warning: [GHC-63397] [-Wname-shadowing] This binding for init shadows the existing binding imported from Data.List at HaLeX_lib/Language/HaLex/DfaMonad.lhs:29:1-16 (and originally defined in GHC.List) | 611 | init = modify (\ s -> ("",snd s)) | ^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:616:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for converte: Patterns of type [Char] not matched: (p:_) where p is not one of {'0', '1'} | 616 | converte [] = 0 | ^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/DfaMonad.lhs:620:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: expo :: (Ord t1, Num t1, Num t2) => t2 -> t1 -> t2 | 620 | expo v e | e > 0 = v * (expo v (e-1)) | ^^^^ [ 8 of 21] Compiling Language.HaLex.FaOperations ( HaLeX_lib/Language/HaLex/FaOperations.hs, dist/build/Language/HaLex/FaOperations.o, dist/build/Language/HaLex/FaOperations.dyn_o ) HaLeX_lib/Language/HaLex/FaOperations.hs:75:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:75:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:75:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:79:20: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 79 | s' = fst (head tt) | ^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 99 | lookupCT st sy [] v = [] | ^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:13: warning: [GHC-40910] [-Wunused-matches] Defined but not used: sy | 99 | lookupCT st sy [] v = [] | ^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 99 | lookupCT st sy [] v = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:102:10: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type Maybe Int not matched: Nothing | 102 | where (Just col) = elemIndex sy v | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:110:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 110 | ndfa2ct (Ndfa v q s z delta) = limit (ndfa2dfaStep delta v) ttFstRow | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:110:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 110 | ndfa2ct (Ndfa v q s z delta) = limit (ndfa2dfaStep delta v) ttFstRow | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa2ct' | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa2ctstep' | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:152:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:151:17 | 152 | where delta' q (Just a) = [delta q a] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:153:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 153 | delta' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:153:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:151:17 | 153 | delta' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:173:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:170:12 | 173 | where dp' q Nothing = (dp q Nothing) `union` sq | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:174:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:170:12 | 174 | dp' q sy = dp q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:185:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for d': Patterns of type b not matched: _ | 185 | d' q | q `elem` qp = dp q | ^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/FaOperations.hs:196:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 196 | where ds' q Nothing = z `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:197:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 197 | ds' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:199:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 199 | dz' q Nothing = s `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:200:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 200 | dz' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:209:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:207:12 | 209 | where dz' q Nothing = s `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:210:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:207:12 | 210 | dz' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:232:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for d': Patterns of type b not matched: _ | 232 | d' q | q `elem` zp = dz' q | ^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/FaOperations.hs:235:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 235 | where dz' q Nothing = [sq] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:235:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 235 | where dz' q Nothing = [sq] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:236:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 236 | dz' q (Just y) | y `elem` vp = [dp q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:239:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 239 | dp' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:239:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 239 | dp' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:240:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 240 | dp' q (Just y) | y `elem` vp = [dp q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:243:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 243 | dq' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:243:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 243 | dq' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:244:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 244 | dq' q (Just y) | y `elem` vq = [dq q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:266:12: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:265:16 | 266 | where d' q | q == s = ds' q | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:269:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 269 | where ds' q Nothing = z | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:269:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 269 | where ds' q Nothing = z | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:270:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 270 | ds' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:272:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 272 | dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:272:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 272 | dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:273:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 273 | dz' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:275:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 275 | dd' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:283:12: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:282:16 | 283 | where d' q | q `elem` z = dz' q | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:285:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 285 | where dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:285:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 285 | where dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:286:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 286 | dz' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:288:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 288 | dd' q (Just y) = [d q y] | ^ [ 9 of 21] Compiling Language.HaLex.RegExp2Fa ( HaLeX_lib/Language/HaLex/RegExp2Fa.hs, dist/build/Language/HaLex/RegExp2Fa.o, dist/build/Language/HaLex/RegExp2Fa.dyn_o ) HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:63:22 | 70 | delta' q | q `elem` qp = if q `elem` zp then dp' q | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:73:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16 | 73 | where dp' q Nothing = (dp q Nothing) `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:74:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16 | 74 | dp' q (Just aa) = dp q (Just aa) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:76:20 | 83 | delta' q | q `elem` s' = dd q | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:89:19: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 89 | where dd q Nothing = sp `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:89:19: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 89 | where dd q Nothing = sp `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:92:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 92 | ddp' q Nothing = z' `union` (dp q Nothing) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:95:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 95 | ddq' q Nothing = z' `union` (dq q Nothing) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:109:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 109 | where dd q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:109:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:106:16 | 109 | where dd q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:112:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 112 | dd' q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:112:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:106:16 | 112 | dd' q Nothing = sp `union` z' | ^ [10 of 21] Compiling Language.HaLex.Minimize ( HaLeX_lib/Language/HaLex/Minimize.hs, dist/build/Language/HaLex/Minimize.o, dist/build/Language/HaLex/Minimize.dyn_o ) HaLeX_lib/Language/HaLex/Minimize.hs:108:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: removeinaccessible :: (Ord st, Ord sy) => Dfa st sy -> Dfa st sy | 108 | removeinaccessible dfa@(Dfa v s i f d) = Dfa v states i (f `intersect` states) d | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:108:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 108 | removeinaccessible dfa@(Dfa v s i f d) = Dfa v states i (f `intersect` states) d | ^ HaLeX_lib/Language/HaLex/Minimize.hs:114:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: removeinaccessible' :: (Ord st, Eq sy) => Dfa st sy -> Dfa [st] sy | 114 | removeinaccessible' a = ndfa2dfa . dfa2ndfa $ a | ^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:114:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: removeinaccessible' | 114 | removeinaccessible' a = ndfa2dfa . dfa2ndfa $ a | ^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:128:13: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 128 | Dfa t l (head (filter (\x->elem si x) l)) | ^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:133:49: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 133 | ndelta st s | elem st l = rfind (d (head st) s) l | ^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:189:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 189 | delta' st Nothing = [] | ^^ [11 of 21] Compiling Language.HaLex.Sentences ( HaLeX_lib/Language/HaLex/Sentences.hs, dist/build/Language/HaLex/Sentences.o, dist/build/Language/HaLex/Sentences.dyn_o ) HaLeX_lib/Language/HaLex/Sentences.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExpParser is redundant except perhaps to import instances from Language.HaLex.RegExpParser To import instances alone, use: import Language.HaLex.RegExpParser() | 26 | import Language.HaLex.RegExpParser | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Sentences.hs:29:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.Maybe is redundant except perhaps to import instances from Data.Maybe To import instances alone, use: import Data.Maybe() | 29 | import Data.Maybe | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Sentences.hs:148:34: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 148 | priorityList = filter (\(a,_,c) -> c == ft) cbu | ^ HaLeX_lib/Language/HaLex/Sentences.hs:154:34: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 154 | k@(before_f, symbol, _) = head $ priorityList ++ p2 | ^^^^ HaLeX_lib/Language/HaLex/Sentences.hs:161:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^ HaLeX_lib/Language/HaLex/Sentences.hs:161:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^ HaLeX_lib/Language/HaLex/Sentences.hs:161:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: d | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^ HaLeX_lib/Language/HaLex/Sentences.hs:161:64: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^^^^ [12 of 21] Compiling Language.HaLex.FaAsDiGraph ( HaLeX_lib/Language/HaLex/FaAsDiGraph.hs, dist/build/Language/HaLex/FaAsDiGraph.o, dist/build/Language/HaLex/FaAsDiGraph.dyn_o ) HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:31:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp is redundant except perhaps to import instances from Language.HaLex.RegExp To import instances alone, use: import Language.HaLex.RegExp() | 31 | import Language.HaLex.RegExp | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:32:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp2Fa is redundant except perhaps to import instances from Language.HaLex.RegExp2Fa To import instances alone, use: import Language.HaLex.RegExp2Fa() | 32 | import Language.HaLex.RegExp2Fa | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:36:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Minimize is redundant except perhaps to import instances from Language.HaLex.Minimize To import instances alone, use: import Language.HaLex.Minimize() | 36 | import Language.HaLex.Minimize | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:40:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa2graphviz :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> [Char] | 40 | ndfa2graphviz ndfa name = tographviz ndfa name "circle" "LR" (show . show) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:43:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa2graphviz2file :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> IO () | 43 | ndfa2graphviz2file ndfa name = | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:48:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2graphviz :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] | 48 | dfa2graphviz dfa name = | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:52:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2graphviz2file :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> IO () | 52 | dfa2graphviz2file dfa name = writeFile (name++".dot") (dfa2graphviz dfa name) | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable t0 to type Integer in the following constraints (Show t0) arising from a use of mirroredInitialStates at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39-59 (Num t0) arising from a use of mirroredInitialStates at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39-59 " In the first argument of createInitialArrows, namely (mirroredInitialStates s 1) In the first argument of (++), namely (createInitialArrows (mirroredInitialStates s 1) s) In the second argument of (++), namely (createInitialArrows (mirroredInitialStates s 1) s) ++ "\n}" | 87 | ++ (createInitialArrows (mirroredInitialStates s 1) s) | ^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:96:23: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:26 | 96 | | q <- qs | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:102:23: warning: [GHC-63397] [-Wname-shadowing] This binding for s shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:28 | 102 | showInitialState s = (showState s) | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:108:29: warning: [GHC-63397] [-Wname-shadowing] This binding for z shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:30 | 108 | | z <- zs ] | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:116:28: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 116 | mirroredInitialStates (x:xs) n = ("\"_newState_" ++ (show n) ++ "\"") : | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:119:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for createInitialArrows: Patterns of type [[Char]], [st] not matched: [] (_:_) (_:_) [] | 119 | createInitialArrows [] [] = " " | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:135:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 135 | showNdfaArrows ndfa@(Ndfa v q s z delta) showState showLabel deadSt syncSt = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:135:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 135 | showNdfaArrows ndfa@(Ndfa v q s z delta) showState showLabel deadSt syncSt = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:151:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: groupMoves :: (Eq a, Eq sy) => [(a, Maybe sy, a)] -> [(a, [Maybe sy], a)] | 151 | groupMoves [] = [] | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:229:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphWithNoSyncSt :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] | 229 | dfa2DiGraphWithNoSyncSt dfa name = dfa2graphviz dfa name | ^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:231:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphIO :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] -> IO () | 231 | dfa2DiGraphIO dfa name fn = writeFile (fn++".gph") (dfa2graphviz dfa name ) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:231:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa2DiGraphIO | 231 | dfa2DiGraphIO dfa name fn = writeFile (fn++".gph") (dfa2graphviz dfa name ) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:233:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfaDiGraphWithNoSyncStIO :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> FilePath -> IO () | 233 | dfaDiGraphWithNoSyncStIO dfa name fn = writeFile fn (dfa2graphviz dfa name) | ^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:236:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphIO'' :: (Show sy, Ord st, Ord sy) => Dfa st sy -> [Char] -> IO () | 236 | dfa2DiGraphIO'' dfa name = dfa2DiGraphIO (beautifyDfa dfa) name name | ^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:236:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa2DiGraphIO'' | 236 | dfa2DiGraphIO'' dfa name = dfa2DiGraphIO (beautifyDfa dfa) name name | ^^^^^^^^^^^^^^^ [13 of 21] Compiling Language.HaLex.RegExpAsDiGraph ( HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs, dist/build/Language/HaLex/RegExpAsDiGraph.o, dist/build/Language/HaLex/RegExpAsDiGraph.dyn_o ) HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 26 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:58:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph' :: (Show sy, Ord sy) => RegExp sy -> [Char] -> [Char] | 58 | re2DiGraph' re name = dfa2graphviz dfa name | ^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:61:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph'' :: (Show sy, Ord sy) => RegExp sy -> [Char] -> [Char] | 61 | re2DiGraph'' re name = dfa2graphviz dfa name | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:65:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph''' :: (Show sy, Eq sy) => RegExp sy -> [Char] -> [Char] | 65 | re2DiGraph''' re name = dfa2DiGraphWithNoSyncSt dfa name | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:68:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraphNdfa :: (Show sy, Eq sy) => RegExp sy -> [Char] -> [Char] | 68 | re2DiGraphNdfa re name = ndfa2graphviz ndfa name | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:73:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re2DiGraphIO | 73 | re2DiGraphIO er name = dfa2graphviz2file dfa name | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:77:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: absRe2DiGraph_File :: (Show sy, Eq sy) => RegExp sy -> [Char] -> IO () | 77 | absRe2DiGraph_File er name = | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:77:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: absRe2DiGraph_File | 77 | absRe2DiGraph_File er name = | ^^^^^^^^^^^^^^^^^^ [14 of 21] Compiling Language.HaLex.Fa2RegExp ( HaLeX_lib/Language/HaLex/Fa2RegExp.hs, dist/build/Language/HaLex/Fa2RegExp.o, dist/build/Language/HaLex/Fa2RegExp.dyn_o ) HaLeX_lib/Language/HaLex/Fa2RegExp.hs:25:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 25 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Util is redundant except perhaps to import instances from Language.HaLex.Util To import instances alone, use: import Language.HaLex.Util() | 26 | import Language.HaLex.Util | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:49:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: toRegExp2 :: [sy] -> RegExp sy | 49 | toRegExp2 [] = Epsilon | ^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:71:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: toRegExp2' :: [Maybe sy] -> RegExp sy | 71 | toRegExp2' [] = Epsilon | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:74:29: warning: [GHC-63397] [-Wname-shadowing] This binding for x shadows the existing binding bound at HaLeX_lib/Language/HaLex/Fa2RegExp.hs:72:13 | 74 | (Just x ) -> Literal x | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:77:29: warning: [GHC-63397] [-Wname-shadowing] This binding for x shadows the existing binding bound at HaLeX_lib/Language/HaLex/Fa2RegExp.hs:75:13 | 77 | (Just x ) -> Or (Literal x) (toRegExp2' xs) | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:104:28: warning: [GHC-40910] [-Wunused-local-binds] Defined but not used: q | 104 | dfa2RegExp dfa = let Dfa v q s z delta = beautifyDfa dfa | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:113:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 113 | dfa2RegExp' dfa@(Dfa v q s z delta) = applyD delta v s z (sizeDfa dfa) | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:124:8: warning: [GHC-40910] [-Wunused-matches] Defined but not used: d | 124 | applyD d v _ [] _ = Empty | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:124:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 124 | applyD d v _ [] _ = Empty | ^ [15 of 21] Compiling Language.HaLex.Examples.Robot ( HaLeX_lib/Language/HaLex/Examples/Robot.lhs, dist/build/Language/HaLex/Examples/Robot.o, dist/build/Language/HaLex/Examples/Robot.dyn_o ) HaLeX_lib/Language/HaLex/Examples/Robot.lhs:21:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ex :: Dfa String String | 21 | ex = Dfa ["esquerda","direita","largar","pegar"] | ^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:27:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type String, String not matched: [] _ (p:_) _ where p is not one of {'C'} ['C'] _ ('C':p:_) _ where p is not one of {'0'} ... | 27 | delta "C0 sem pepita" "direita" = "C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Examples/Robot.lhs:27:5: warning: [GHC-61505] Pattern match checker ran into -fmax-pmcheck-models=30 limit, so " Redundant clauses might not be reported at all " Redundant clauses might be reported as inaccessible " Patterns reported as unmatched might actually be matched Suggested fix: Increase the limit or resolve the warnings to suppress this message. | 27 | delta "C0 sem pepita" "direita" = "C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Examples/Robot.lhs:42:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves :: [String] | 42 | moves = ["direita","pegar","esquerda","largar"] | ^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:43:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves2 :: [String] | 43 | moves2 = ["esquerda","pegar","direita","pegar","esquerda","largar"] | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:44:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves3 :: [String] | 44 | moves3 = ["esquerda","pegar","direita"] | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:45:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves4 :: [String] | 45 | moves4 = moves2 ++ moves | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:47:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: g :: IO () | 47 | g = dfa2graphviz2file ex "xxx" | ^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:64:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type String, String not matched: [] _ (p:_) _ where p is not one of {'C'} ['C'] _ ('C':p:_) _ where p is not one of {'0'} ... | 64 | delta "C0 sem pepita" "direita" = return "C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Examples/Robot.lhs:64:5: warning: [GHC-61505] Pattern match checker ran into -fmax-pmcheck-models=30 limit, so " Redundant clauses might not be reported at all " Redundant clauses might be reported as inaccessible " Patterns reported as unmatched might actually be matched Suggested fix: Increase the limit or resolve the warnings to suppress this message. | 64 | delta "C0 sem pepita" "direita" = return "C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Examples/Robot.lhs:81:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: acc :: Maybe Bool | 81 | acc = DfaMonad.dfaaccept robotM moves4 | ^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:99:5: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for delta: Patterns of type String, String not matched: [] _ (p:_) _ where p is not one of {'C'} ['C'] _ ('C':p:_) _ where p is not one of {'0'} ... | 99 | delta "C0 sem pepita" "direita" = do putStrLn "Vou para C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Examples/Robot.lhs:99:5: warning: [GHC-61505] Pattern match checker ran into -fmax-pmcheck-models=30 limit, so " Redundant clauses might not be reported at all " Redundant clauses might be reported as inaccessible " Patterns reported as unmatched might actually be matched Suggested fix: Increase the limit or resolve the warnings to suppress this message. | 99 | delta "C0 sem pepita" "direita" = do putStrLn "Vou para C1 sem pepita" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Examples/Robot.lhs:118:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: acc2 :: IO Bool | 118 | acc2 = DfaMonad.dfaaccept robotM2 moves4 | ^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:121:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: exShow :: IO () | 121 | exShow = do d <- DfaMonad.showInDot robotM2 True | ^^^^^^ [16 of 21] Compiling Language.HaLex.Equivalence ( HaLeX_lib/Language/HaLex/Equivalence.hs, dist/build/Language/HaLex/Equivalence.o, dist/build/Language/HaLex/Equivalence.dyn_o ) HaLeX_lib/Language/HaLex/Equivalence.hs:76:40: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 76 | equivREs re = or (map (equivRE reFst) (tail re)) | ^^^^ HaLeX_lib/Language/HaLex/Equivalence.hs:77:17: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 77 | where reFst = head re | ^^^^ [17 of 21] Compiling Language.HaLex.FaClasses ( HaLeX_lib/Language/HaLex/FaClasses.hs, dist/build/Language/HaLex/FaClasses.o, dist/build/Language/HaLex/FaClasses.dyn_o ) [18 of 21] Compiling Language.HaLex.Test_HaLex_Quickcheck ( HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs, dist/build/Language/HaLex/Test_HaLex_Quickcheck.o, dist/build/Language/HaLex/Test_HaLex_Quickcheck.dyn_o ) HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:22:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp2Fa is redundant except perhaps to import instances from Language.HaLex.RegExp2Fa To import instances alone, use: import Language.HaLex.RegExp2Fa() | 22 | import Language.HaLex.RegExp2Fa | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:23:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExpParser is redundant except perhaps to import instances from Language.HaLex.RegExpParser To import instances alone, use: import Language.HaLex.RegExpParser() | 23 | import Language.HaLex.RegExpParser | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:24:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.FaOperations is redundant except perhaps to import instances from Language.HaLex.FaOperations To import instances alone, use: import Language.HaLex.FaOperations() | 24 | import Language.HaLex.FaOperations | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:25:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Minimize is redundant except perhaps to import instances from Language.HaLex.Minimize To import instances alone, use: import Language.HaLex.Minimize() | 25 | import Language.HaLex.Minimize | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Sentences is redundant except perhaps to import instances from Language.HaLex.Sentences To import instances alone, use: import Language.HaLex.Sentences() | 26 | import Language.HaLex.Sentences | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:27:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.FaClasses is redundant except perhaps to import instances from Language.HaLex.FaClasses To import instances alone, use: import Language.HaLex.FaClasses() | 27 | import Language.HaLex.FaClasses | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:31:1: warning: [GHC-66111] [-Wunused-imports] The import of Control.Monad is redundant except perhaps to import instances from Control.Monad To import instances alone, use: import Control.Monad() | 31 | import Control.Monad | ^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:35:1: warning: [GHC-90177] [-Worphans] Orphan class instance: instance Arbitrary (RegExp Char) Suggested fix: Move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 35 | instance Arbitrary (RegExp Char) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:45:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in 18 further locations. Suggested fix: Please use spaces instead. | 45 | ,(2 , genDigits) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:64:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: digRegExp' :: RegExp Char | 64 | digRegExp' = foldr (\l r -> Or (Literal (intToDigit l)) | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:68:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: genRegExp' :: Integral a => a -> Gen (RegExp Char) | 68 | genRegExp' size | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:80:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: exRegExp :: IO () | 80 | exRegExp = sample (arbitrary :: Gen (RegExp Char)) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:93:17: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:1 | 93 | genDfaSentences dfa@(Dfa _ _ s z _) = genStrDfa tt syncStates s z | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:118:30: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 118 | genNdfa_Sentences ndfa@(Ndfa v q s z d) = | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:118:32: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 118 | genNdfa_Sentences ndfa@(Ndfa v q s z d) = | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:118:38: warning: [GHC-40910] [-Wunused-matches] Defined but not used: d | 118 | genNdfa_Sentences ndfa@(Ndfa v q s z d) = | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:133:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: maybeToList :: Maybe a -> [a] | 133 | maybeToList (Just x) = [x] | ^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa :: Dfa Integer Char | 178 | dfa = Dfa "abc" [1,2,3,4] 1 [4] d | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:18: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable st0 to type Integer in the following constraints (Num st0) arising from the literal 1 at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:18 (Eq st0) arising from a use of d at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:33 " In the expression: 1 In the second argument of Dfa, namely [1, 2, 3, 4] In the expression: Dfa "abc" [1, 2, 3, 4] 1 [4] d | 178 | dfa = Dfa "abc" [1,2,3,4] 1 [4] d | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:179:9: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for d: Patterns of type a, Char not matched: p _ where p is not one of {3, 1, 2} 1 p where p is not one of {'c', 'a', 'b'} 3 p where p is not one of {'c', 'a', 'b'} 3 p where p is not one of {'c', 'a', 'b'} | 179 | where d 1 'a' = 2 | ^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2 :: Dfa Integer Char | 189 | dfa2 = Dfa "abc" [1,2,3,4] 1 [5] d | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:19: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable st0 to type Integer in the following constraints (Num st0) arising from the literal 1 at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:19 (Eq st0) arising from a use of d at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:34 " In the expression: 1 In the second argument of Dfa, namely [1, 2, 3, 4] In the expression: Dfa "abc" [1, 2, 3, 4] 1 [5] d | 189 | dfa2 = Dfa "abc" [1,2,3,4] 1 [5] d | ^ [19 of 21] Compiling Language.HaLex.Test_HaLex ( HaLeX_lib/Language/HaLex/Test_HaLex.hs, dist/build/Language/HaLex/Test_HaLex.o, dist/build/Language/HaLex/Test_HaLex.dyn_o ) HaLeX_lib/Language/HaLex/Test_HaLex.hs:31:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 31 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:47:14: warning: [GHC-63397] [-Wname-shadowing] This binding for ndfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1 | 47 | test_size_fa ndfa = TestList [ sizeFa dfa_min <= sizeFa dfa ~?= True | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:50:16: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1 | 50 | where dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:51:16: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa_min shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1 | 51 | dfa_min = minimizeDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:60:20: warning: [GHC-63397] [-Wname-shadowing] This binding for re shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:78:1 | 60 | test_gen_sentences re = | ^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:67:14: warning: [GHC-63397] [-Wname-shadowing] This binding for ndfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1 | 67 | ndfa = regExp2Ndfa re | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:68:14: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1 | 68 | dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:69:14: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa_min shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1 | 69 | dfa_min = minimizeDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:78:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re :: RegExp Char | 78 | re = fromJust $ parseRegExp "('+'|'-')?[0-9]*('.'?)[0-9]+" | ^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:78:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re | 78 | re = fromJust $ parseRegExp "('+'|'-')?[0-9]*('.'?)[0-9]+" | ^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:81:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re'' :: RegExp Char | 81 | re'' = fromJust $ parseRegExp "a[^a]*a" | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:81:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re'' | 81 | re'' = fromJust $ parseRegExp "a[^a]*a" | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa :: Ndfa Int Char | 84 | ndfa = regExp2Ndfa re | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa | 84 | ndfa = regExp2Ndfa re | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa :: Dfa [Int] Char | 85 | dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa | 85 | dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:86:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_int :: Dfa Int Char | 86 | dfa_int = beautifyDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:86:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa_int | 86 | dfa_int = beautifyDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_min :: Dfa [[Int]] Char | 88 | dfa_min = minimizeDfa dfa_int | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa_min | 88 | dfa_min = minimizeDfa dfa_int | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:89:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_min' :: Dfa Int Char | 89 | dfa_min' = beautifyDfa dfa_min | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:89:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa_min' | 89 | dfa_min' = beautifyDfa dfa_min | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:92:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: test_acceptNdfa :: Test | 92 | test_acceptNdfa = TestList [ ndfaaccept ndfa "109" ~?= True | ^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:92:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: test_acceptNdfa | 92 | test_acceptNdfa = TestList [ ndfaaccept ndfa "109" ~?= True | ^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:101:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: test_acceptDfa :: Test | 101 | test_acceptDfa = TestList [ dfaaccept dfa "109" ~?= True | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:101:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: test_acceptDfa | 101 | test_acceptDfa = TestList [ dfaaccept dfa "109" ~?= True | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:110:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: test_acceptDfamin :: Test | 110 | test_acceptDfamin = TestList [ dfaaccept dfa_min "109" ~?= True | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:110:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: test_acceptDfamin | 110 | test_acceptDfamin = TestList [ dfaaccept dfa_min "109" ~?= True | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:120:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfaToHaskell :: IO () | 120 | dfaToHaskell = toHaskell dfa_int "Dfa_RE" | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:120:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfaToHaskell | 120 | dfaToHaskell = toHaskell dfa_int "Dfa_RE" | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:123:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re' :: RegExp Char | 123 | re' = fromJust $ parseRegExp "[a-z][a-z]*" | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:123:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re' | 123 | re' = fromJust $ parseRegExp "[a-z][a-z]*" | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:127:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: main :: IO Counts | 127 | main = do runTestTT test_acceptNdfa | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:127:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: main | 127 | main = do runTestTT test_acceptNdfa | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:127:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT test_acceptNdfa | 127 | main = do runTestTT test_acceptNdfa | ^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:128:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT test_acceptDfa | 128 | runTestTT test_acceptDfa | ^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:129:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT test_acceptDfamin | 129 | runTestTT test_acceptDfamin | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:130:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT $ test_size_fa (regExp2Ndfa re) | 130 | runTestTT $ test_size_fa (regExp2Ndfa re) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:131:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT $ test_size_fa (regExp2Ndfa re') | 131 | runTestTT $ test_size_fa (regExp2Ndfa re') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:132:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT $ test_gen_sentences re | 132 | runTestTT $ test_gen_sentences re | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [20 of 21] Compiling Language.HaLex.Examples.Real ( HaLeX_lib/Language/HaLex/Examples/Real.lhs, dist/build/Language/HaLex/Examples/Real.o, dist/build/Language/HaLex/Examples/Real.dyn_o ) HaLeX_lib/Language/HaLex/Examples/Real.lhs:49:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 49 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:59:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExpAsDiGraph is redundant except perhaps to import instances from Language.HaLex.RegExpAsDiGraph To import instances alone, use: import Language.HaLex.RegExpAsDiGraph() | 59 | import Language.HaLex.RegExpAsDiGraph | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:62:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Fa2RegExp is redundant except perhaps to import instances from Language.HaLex.Fa2RegExp To import instances alone, use: import Language.HaLex.Fa2RegExp() | 62 | import Language.HaLex.Fa2RegExp | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:70:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: sinal'' :: RegExp Char | 70 | sinal'' = (Literal '-') `Or` (Literal '+') `Or` Epsilon | ^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:72:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: d :: RegExp Char | 72 | d = Literal 'd' | ^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:75:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re_int :: RegExp Char | 75 | re_int = sinal'' `Then` d `Then` (Star d) | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:78:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: intdfa :: Dfa Int Char | 78 | intdfa = (beautifyDfa . ndfa2dfa . regExp2Ndfa) re_int | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:81:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: d' :: RegExp Char | 81 | d' = (Literal '0') `Or` (Literal '1') `Or` (Literal '2') `Or` | ^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:87:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re_real :: RegExp Char | 87 | re_real = sinal'' `Then` (Star d') | ^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:91:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re_real' :: RegExp Char | 91 | re_real' = sinal'' `Then` (Star d) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:98:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: cre_real :: String | 98 | cre_real = "('+'|'-')?d*('.')?d+" | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:101:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa' :: Dfa Int Char | 101 | realdfa' = (beautifyDfa . ndfa2dfa . regExp2Ndfa) re_real | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:103:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa'' :: Dfa Int Char | 103 | realdfa'' = (beautifyDfa . minimizeDfa . ndfa2dfa . regExp2Ndfa) re_real' | ^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:105:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa''' :: Dfa Int Char | 105 | realdfa''' = (beautifyDfa . stdMinimizeDfa . ndfa2dfa . regExp2Ndfa) re_real' | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:109:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa'''' :: Dfa Int Char | 109 | realdfa'''' = beautifyDfa . minimizeNdfa . regExp2Ndfa $ re_real' | ^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:111:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: genGraph :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> [Char] -> (st -> [Char]) -> IO () | 111 | genGraph fa = tographvizIO fa "exp" | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:114:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa :: Dfa Char Char | 114 | realdfa = Dfa ['+','-','.','0','1','2','3','4','5','6','7','8','9'] | ^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:176:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realndfa :: Ndfa Char Char | 176 | realndfa = Ndfa ['+','-','.','0','1','2','3','4','5','6','7','8','9'] | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:182:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: deltaNdfa :: Char -> Maybe Char -> [Char] | 182 | deltaNdfa 'A' (Just '+') = ['B'] | ^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:227:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: isrealNdfa :: [Char] -> Bool | 227 | isrealNdfa = Fa.accept realndfa | ^^^^^^^^^^ [21 of 21] Compiling Language.HaLex.Dfa2MDfa ( HaLeX_lib/Language/HaLex/Dfa2MDfa.hs, dist/build/Language/HaLex/Dfa2MDfa.o, dist/build/Language/HaLex/Dfa2MDfa.dyn_o ) HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:19:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 19 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:21:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 21 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:28:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showAsAccumDfa :: (Show sy, Show st) => Dfa st sy -> String -> String | 28 | showAsAccumDfa (Dfa v q s z delta) = | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:48:5: warning: [GHC-63397] [-Wname-shadowing] This binding for f shadows the existing binding defined at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:108:1 | 48 | f = zipWith3 showF m n q' | ^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:74:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2MHaskellMod :: (Show sy, Ord sy) => RegExp sy -> Bool -> Bool -> [Char] | 74 | re2MHaskellMod re m b = "module GenMDfa where\n\n" ++ | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:84:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for re2MDfa: Patterns of type RegExp sy, Bool, Bool not matched: _ _ _ | 84 | re2MDfa re m b | ^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:108:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: f :: Maybe (RegExp sy) -> RegExp sy | 108 | f (Just p ) = p | ^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:116:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_int :: Dfa Integer Char | 116 | dfa_int = Dfa ['+','-','0','1'] | ^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:117:16: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable st0 to type Integer in the following constraints (Num st0) arising from the literal 1 at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:117:16 (Eq st0) arising from a use of delta at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:120:15-19 " In the expression: 1 In the second argument of Dfa, namely [1, 2, 3, 4] In the expression: Dfa ['+', '-', '0', '1'] [1, 2, 3, 4] 1 [3] delta | 117 | [1,2,3,4] | ^ Preprocessing executable 'halex' for HaLeX-1.3.0.. Preprocessing library for HaLeX-1.3.0.. Running Haddock on library for HaLeX-1.3.0.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. [ 1 of 21] Compiling Language.HaLex.Parser ( HaLeX_lib/Language/HaLex/Parser.hs, nothing ) HaLeX_lib/Language/HaLex/Parser.hs:42:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 42 | satisfy p [] = [] | ^ HaLeX_lib/Language/HaLex/Parser.hs:62:4: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: (<*>) :: (t1 -> [(t2 -> a, t3)]) -> (t3 -> [(t2, b)]) -> t1 -> [(a, b)] | 62 | (p <*> q) xs = [ ( f z , zs ) | ^^^ HaLeX_lib/Language/HaLex/Parser.hs:67:4: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: (<$>) :: (t1 -> a) -> (t2 -> [(t1, b)]) -> t2 -> [(a, b)] | 67 | (f <$> p) xs = [(f y, ys) | (y,ys) <- p xs ] | ^^^ [ 2 of 21] Compiling Language.HaLex.Util ( HaLeX_lib/Language/HaLex/Util.hs, nothing ) HaLeX_lib/Language/HaLex/Util.hs:55:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: insAtPos :: (Eq t1, Num t1) => t1 -> t2 -> [t2] -> [t2] | 55 | insAtPos 1 e l = e : l | ^^^^^^^^ [ 3 of 21] Compiling Language.HaLex.RegExp ( HaLeX_lib/Language/HaLex/RegExp.hs, nothing ) HaLeX_lib/Language/HaLex/RegExp.hs:72:27: warning: [GHC-63397] [-Wname-shadowing] This binding for or shadows the existing binding imported from Prelude at HaLeX_lib/Language/HaLex/RegExp.hs:21:8-28 (and originally defined in Data.Foldable) | 72 | cataRegExp (empty,epsilon,or,star,lit,th,one,opt,set) = cata | ^^ HaLeX_lib/Language/HaLex/RegExp.hs:95:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: inp | 95 | matchesRE Empty inp = False | ^^^ HaLeX_lib/Language/HaLex/RegExp.hs:147:38: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 147 | sizeRegExp = cataRegExp (0,0,(+),id,\x -> 1,(+),id,id,length) | ^ HaLeX_lib/Language/HaLex/RegExp.hs:184:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: n | 184 | showsPrec n (Star e) = showsPrec 10 e . showChar '*' | ^ HaLeX_lib/Language/HaLex/RegExp.hs:201:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: isSymbol :: Char -> Bool | 201 | isSymbol x = x `elem` "|? " | ^^^^^^^^ HaLeX_lib/Language/HaLex/RegExp.hs:201:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: isSymbol | 201 | isSymbol x = x `elem` "|? " | ^^^^^^^^ HaLeX_lib/Language/HaLex/RegExp.hs:233:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 233 | simplifyRegExp a@(Or x y) | ^ [ 4 of 21] Compiling Language.HaLex.RegExpParser ( HaLeX_lib/Language/HaLex/RegExpParser.hs, nothing ) HaLeX_lib/Language/HaLex/RegExpParser.hs:37:44: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 37 | | otherwise = Just (fst (head parsed_re)) | ^^^^ HaLeX_lib/Language/HaLex/RegExpParser.hs:62:44: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 62 | <|> g <$> symbol '\'' <*> satisfy (\ x -> True) <*> symbol '\'' | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:70:10: warning: [GHC-63397] [-Wname-shadowing] This binding for l shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExpParser.hs:71:6 | 70 | k _ l _ = RESet (concat l) | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:71:12: warning: [GHC-63397] [-Wname-shadowing] This binding for l shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExpParser.hs:71:6 | 71 | l _ _ l _ = RESet [ x | x <- ascii | ^ HaLeX_lib/Language/HaLex/RegExpParser.hs:89:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: setRegExp | 89 | setRegExp a b = foldr1 Or (map Literal [a..b]) | ^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpParser.hs:104:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: spaces | 104 | spaces = (\ _ _ -> ()) <$> symbol ' ' <*> spaces | ^^^^^^ [ 5 of 21] Compiling Language.HaLex.Dfa ( HaLeX_lib/Language/HaLex/Dfa.hs, nothing ) HaLeX_lib/Language/HaLex/Dfa.hs:87:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 87 | dfawalk delta s [] = s | ^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:98:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfaaccept' | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:98:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:98:19: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 98 | dfaaccept' (Dfa v q s z delta) simb = (dfawalk delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:108:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 108 | dfaaccept (Dfa v q s z delta) simb = (foldl delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:108:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 108 | dfaaccept (Dfa v q s z delta) simb = (foldl delta s simb) `elem` z | ^ HaLeX_lib/Language/HaLex/Dfa.hs:118:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 118 | showsPrec p (Dfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/Dfa.hs:225:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 225 | transitionTableDfa (Dfa v q s z delta) = sort [ ( aq , av , delta aq av) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:225:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 225 | transitionTableDfa (Dfa v q s z delta) = sort [ ( aq , av , delta aq av) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:243:30: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 243 | transitionTableDfa' (Dfa v q s z delta) = sort [ ( aq , map (delta aq) v ) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:243:32: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 243 | transitionTableDfa' (Dfa v q s z delta) = sort [ ( aq , map (delta aq) v ) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:266:26: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 266 | lookUptt q v ((a,b,c) : []) = c | ^ HaLeX_lib/Language/HaLex/Dfa.hs:294:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: qaux | 294 | getNewFinalSt [] qaux = [] | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:301:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: i | 301 | giveNumber [] i = [] | ^ HaLeX_lib/Language/HaLex/Dfa.hs:341:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 341 | dfa2tdfa (Dfa v q s z delta) = limit (dfa2tdfaStep delta v') tbFstRow | ^ HaLeX_lib/Language/HaLex/Dfa.hs:341:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 341 | dfa2tdfa (Dfa v q s z delta) = limit (dfa2tdfaStep delta v') tbFstRow | ^ HaLeX_lib/Language/HaLex/Dfa.hs:382:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 382 | renameDfa dfa@(Dfa v q s z delta) istid = Dfa v' q' s' z' delta' | ^ HaLeX_lib/Language/HaLex/Dfa.hs:382:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 382 | renameDfa dfa@(Dfa v q s z delta) istid = Dfa v' q' s' z' delta' | ^ HaLeX_lib/Language/HaLex/Dfa.hs:388:46: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 388 | z' = sort $ map snd (filter (\(a,b) -> a `elem` z) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:396:52: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 396 | newStsOfTable tb ini = newStsOfTableAux tb [(fst $ head tb,ini)] | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:400:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 400 | newStsOfTableAux ((st,sts):t) newSt = newSt'' | ^^ HaLeX_lib/Language/HaLex/Dfa.hs:409:52: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 409 | where newSt' = procrhsSts sts ((st,( snd $ head newSt) + 1) : newSt) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:411:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: lookupNewSts :: (Eq a, Eq b) => (a -> p -> a) -> b -> p -> [(a, b)] -> b | 411 | lookupNewSts delta newSt sy newSts = getNewSt newOldSt newSts | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: getNewSt :: Eq a => a -> [(a, b)] -> b | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:31: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:414:49: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 414 | getNewSt oldSt newSts = snd $ head (filter (\(a,b) -> a == oldSt) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:415:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: getOldSt :: Eq a1 => a1 -> [(a2, a1)] -> a2 | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:415:31: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^^^^ HaLeX_lib/Language/HaLex/Dfa.hs:415:47: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 415 | getOldSt newSt newSts = fst $ head (filter (\(a,b) -> b == newSt) newSts) | ^ HaLeX_lib/Language/HaLex/Dfa.hs:447:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 447 | dfadeadstates (Dfa v qs s z d) = filter (isStDead d v z) qs | ^ [ 6 of 21] Compiling Language.HaLex.Ndfa ( HaLeX_lib/Language/HaLex/Ndfa.hs, nothing ) HaLeX_lib/Language/HaLex/Ndfa.hs:53:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Dfa is redundant except perhaps to import instances from Language.HaLex.Dfa To import instances alone, use: import Language.HaLex.Dfa() | 53 | import Language.HaLex.Dfa | ^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:92:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 92 | ndfawalk delta sts [] = sts | ^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:104:8: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 104 | delta' delta [] sy = [] | ^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:104:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: sy | 104 | delta' delta [] sy = [] | ^^ HaLeX_lib/Language/HaLex/Ndfa.hs:123:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: p | 123 | showsPrec p (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:138:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showNdfaDelta :: (Eq a1, Show a2, Show a3, Show a1) => [a2] -> [a3] -> (a2 -> Maybe a3 -> [a1]) -> String -> String | 138 | showNdfaDelta q v d = foldr (.) (showChar '\n') f | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:228:33: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 228 | transitionTableNdfa (Ndfa vs qs s z delta) = [ (q,Just v,r) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:228:35: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 228 | transitionTableNdfa (Ndfa vs qs s z delta) = [ (q,Just v,r) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:282:28: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 282 | lookupFst nsts ost = snd $ head (filter (\ (a,b) -> a == ost) nsts) | ^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:282:47: warning: [GHC-40910] [-Wunused-matches] Defined but not used: b | 282 | lookupFst nsts ost = snd $ head (filter (\ (a,b) -> a == ost) nsts) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:286:28: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 286 | lookupSnd nsts nst = fst $ head (filter (\ (a,b) -> b == nst) nsts) | ^^^^ HaLeX_lib/Language/HaLex/Ndfa.hs:286:45: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 286 | lookupSnd nsts nst = fst $ head (filter (\ (a,b) -> b == nst) nsts) | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:299:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 299 | ndfadeadstates (Ndfa v qs s z d) = filter (ndfaIsStDead d v z) qs | ^ HaLeX_lib/Language/HaLex/Ndfa.hs:308:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 308 | ndfasyncstates (Ndfa v qs s z d) = filter (ndfaIsSyncState d v z) qs | ^ [ 7 of 21] Compiling Language.HaLex.DfaMonad ( HaLeX_lib/Language/HaLex/DfaMonad.lhs, nothing ) HaLeX_lib/Language/HaLex/DfaMonad.lhs:29:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 29 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:30:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 30 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:126:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 126 | showInDot dfa@(Dfa v q s z delta) t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:126:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 126 | showInDot dfa@(Dfa v q s z delta) t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:126:28: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 126 | showInDot dfa@(Dfa v q s z delta) t = | ^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:142:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showInitialState :: Show a => a -> String -> String | 142 | showInitialState s = showString("\"") . shows s . showChar('\"') . | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:146:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showFinalStates' :: Show a => [a] -> [[Char]] | 146 | showFinalStates' z = [ "\"" ++ (show f) ++ "\"" | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:151:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 151 | showArrows (Dfa v qs s z delta) dsts t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:151:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 151 | showArrows (Dfa v qs s z delta) dsts t = | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:183:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 183 | deadstates (Dfa v qs s z d) = deadstates' qs v d | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:183:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 183 | deadstates (Dfa v qs s z d) = deadstates' qs v d | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:209:15: warning: [GHC-40910] [-Wunused-matches] Defined but not used: e | 209 | where isin' e [] = [True] | ^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:245:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves :: [String] | 245 | moves = ["direita","pegar","esquerda","largar"] | ^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:246:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves2 :: [String] | 246 | moves2 = ["esquerda","pegar","direita","pegar","esquerda","largar"] | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:247:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves3 :: [String] | 247 | moves3 = ["esquerda","pegar","direita"] | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:248:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves4 :: [String] | 248 | moves4 = moves2 ++ moves ++ moves3 | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:250:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: acc :: Maybe Bool | 250 | acc = dfaaccept robot moves4 | ^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:270:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: varGlob :: IORef String | 270 | varGlob = unsafePerformIO $ newIORef "" | ^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:345:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in three further locations. Suggested fix: Please use spaces instead. | 345 | return 'A' | ^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:353:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept :: (Eq st, Num s) => Dfa (StateT s Data.Functor.Identity.Identity) st sy -> [sy] -> (Bool, s) | 353 | runAccept dfa str = runState (dfaaccept dfa str) 0 | ^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:380:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_ex4 :: Eq st => Dfa (StateT String Data.Functor.Identity.Identity) st sy -> [sy] -> (Bool, String) | 380 | runAccept_ex4 dfa str = runState (dfaaccept dfa str) "" | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:406:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_ex5 :: [Char] -> (Bool, [Char]) | 406 | runAccept_ex5 str = runState (dfaaccept ex5 str) "" | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:430:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumM | 430 | delta 1 '-' = do accumM | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:432:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumD | 432 | delta 1 'd' = do accumD | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:434:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumD | 434 | delta 2 'd' = do accumD | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:436:22: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type [Char] Suggested fix: Suppress this warning by saying _ <- accumD | 436 | delta 3 'd' = do accumD | ^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:446:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_int :: [Char] -> (Bool, [Char]) | 446 | runAccept_int str = runState (dfaaccept ex_int str) "" | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:494:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_ex6 :: [Char] -> (Bool, ([Char], Int)) | 494 | runAccept_ex6 str = runState (dfaaccept ex6 str) ("",0::Int) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:557:5: warning: [GHC-63397] [-Wname-shadowing] This binding for init shadows the existing binding imported from Data.List at HaLeX_lib/Language/HaLex/DfaMonad.lhs:29:1-16 (and originally defined in GHC.List) | 557 | init = state f | ^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:567:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: runAccept_te :: [Char] -> (Bool, ([Char], [Code])) | 567 | runAccept_te str = runState (dfaaccept te str) ("",[]) | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:611:5: warning: [GHC-63397] [-Wname-shadowing] This binding for init shadows the existing binding imported from Data.List at HaLeX_lib/Language/HaLex/DfaMonad.lhs:29:1-16 (and originally defined in GHC.List) | 611 | init = modify (\ s -> ("",snd s)) | ^^^^ HaLeX_lib/Language/HaLex/DfaMonad.lhs:620:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: expo :: (Ord t1, Num t1, Num t2) => t2 -> t1 -> t2 | 620 | expo v e | e > 0 = v * (expo v (e-1)) | ^^^^ [ 8 of 21] Compiling Language.HaLex.FaOperations ( HaLeX_lib/Language/HaLex/FaOperations.hs, nothing ) HaLeX_lib/Language/HaLex/FaOperations.hs:75:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:75:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:75:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 75 | ndfa2dfa ndfa@(Ndfa v q s z delta) = (Dfa v' q' s' z' delta') | ^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:79:20: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 79 | s' = fst (head tt) | ^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 99 | lookupCT st sy [] v = [] | ^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:13: warning: [GHC-40910] [-Wunused-matches] Defined but not used: sy | 99 | lookupCT st sy [] v = [] | ^^ HaLeX_lib/Language/HaLex/FaOperations.hs:99:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 99 | lookupCT st sy [] v = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:110:17: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 110 | ndfa2ct (Ndfa v q s z delta) = limit (ndfa2dfaStep delta v) ttFstRow | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:110:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 110 | ndfa2ct (Ndfa v q s z delta) = limit (ndfa2dfaStep delta v) ttFstRow | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa2ct' | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:18: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:129:22: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 129 | ndfa2ct' (Ndfa v q s z delta) = | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa2ctstep' | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^^^^^ HaLeX_lib/Language/HaLex/FaOperations.hs:137:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 137 | ndfa2ctstep' delta v ct [] done = (ct , done ) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:152:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:151:17 | 152 | where delta' q (Just a) = [delta q a] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:153:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 153 | delta' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:153:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:151:17 | 153 | delta' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:173:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:170:12 | 173 | where dp' q Nothing = (dp q Nothing) `union` sq | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:174:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:170:12 | 174 | dp' q sy = dp q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:196:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 196 | where ds' q Nothing = z `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:197:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 197 | ds' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:199:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 199 | dz' q Nothing = s `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:200:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:193:12 | 200 | dz' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:209:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:207:12 | 209 | where dz' q Nothing = s `union` (d q Nothing) | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:210:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:207:12 | 210 | dz' q sy = d q sy | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:235:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 235 | where dz' q Nothing = [sq] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:235:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 235 | where dz' q Nothing = [sq] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:236:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 236 | dz' q (Just y) | y `elem` vp = [dp q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:239:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 239 | dp' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:239:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 239 | dp' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:240:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 240 | dp' q (Just y) | y `elem` vp = [dp q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:243:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 243 | dq' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:243:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 243 | dq' q Nothing = [] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:244:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:232:12 | 244 | dq' q (Just y) | y `elem` vq = [dq q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:266:12: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:265:16 | 266 | where d' q | q == s = ds' q | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:269:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 269 | where ds' q Nothing = z | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:269:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 269 | where ds' q Nothing = z | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:270:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 270 | ds' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:272:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 272 | dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:272:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 272 | dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:273:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 273 | dz' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:275:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:266:12 | 275 | dd' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:283:12: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:282:16 | 283 | where d' q | q `elem` z = dz' q | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:285:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 285 | where dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:285:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 285 | where dz' q Nothing = [s] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:286:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 286 | dz' q (Just y) = [d q y] | ^ HaLeX_lib/Language/HaLex/FaOperations.hs:288:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaOperations.hs:283:12 | 288 | dd' q (Just y) = [d q y] | ^ [ 9 of 21] Compiling Language.HaLex.RegExp2Fa ( HaLeX_lib/Language/HaLex/RegExp2Fa.hs, nothing ) HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:63:22 | 70 | delta' q | q `elem` qp = if q `elem` zp then dp' q | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:73:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16 | 73 | where dp' q Nothing = (dp q Nothing) `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:74:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:70:16 | 74 | dp' q (Just aa) = dp q (Just aa) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:76:20 | 83 | delta' q | q `elem` s' = dd q | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:89:19: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 89 | where dd q Nothing = sp `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:89:19: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 89 | where dd q Nothing = sp `union` sq | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:92:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 92 | ddp' q Nothing = z' `union` (dp q Nothing) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:95:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:83:16 | 95 | ddq' q Nothing = z' `union` (dq q Nothing) | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:109:20: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 109 | where dd q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:109:20: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:106:16 | 109 | where dd q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:112:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 112 | dd' q Nothing = sp `union` z' | ^ HaLeX_lib/Language/HaLex/RegExp2Fa.hs:112:21: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/RegExp2Fa.hs:106:16 | 112 | dd' q Nothing = sp `union` z' | ^ [10 of 21] Compiling Language.HaLex.Minimize ( HaLeX_lib/Language/HaLex/Minimize.hs, nothing ) HaLeX_lib/Language/HaLex/Minimize.hs:108:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: removeinaccessible :: (Ord st, Ord sy) => Dfa st sy -> Dfa st sy | 108 | removeinaccessible dfa@(Dfa v s i f d) = Dfa v states i (f `intersect` states) d | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:108:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 108 | removeinaccessible dfa@(Dfa v s i f d) = Dfa v states i (f `intersect` states) d | ^ HaLeX_lib/Language/HaLex/Minimize.hs:114:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: removeinaccessible' :: (Ord st, Eq sy) => Dfa st sy -> Dfa [st] sy | 114 | removeinaccessible' a = ndfa2dfa . dfa2ndfa $ a | ^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:114:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: removeinaccessible' | 114 | removeinaccessible' a = ndfa2dfa . dfa2ndfa $ a | ^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:128:13: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 128 | Dfa t l (head (filter (\x->elem si x) l)) | ^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:133:49: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 133 | ndelta st s | elem st l = rfind (d (head st) s) l | ^^^^ HaLeX_lib/Language/HaLex/Minimize.hs:189:16: warning: [GHC-40910] [-Wunused-matches] Defined but not used: st | 189 | delta' st Nothing = [] | ^^ [11 of 21] Compiling Language.HaLex.Sentences ( HaLeX_lib/Language/HaLex/Sentences.hs, nothing ) HaLeX_lib/Language/HaLex/Sentences.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExpParser is redundant except perhaps to import instances from Language.HaLex.RegExpParser To import instances alone, use: import Language.HaLex.RegExpParser() | 26 | import Language.HaLex.RegExpParser | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Sentences.hs:29:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.Maybe is redundant except perhaps to import instances from Data.Maybe To import instances alone, use: import Data.Maybe() | 29 | import Data.Maybe | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Sentences.hs:148:34: warning: [GHC-40910] [-Wunused-matches] Defined but not used: a | 148 | priorityList = filter (\(a,_,c) -> c == ft) cbu | ^ HaLeX_lib/Language/HaLex/Sentences.hs:154:34: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 154 | k@(before_f, symbol, _) = head $ priorityList ++ p2 | ^^^^ HaLeX_lib/Language/HaLex/Sentences.hs:161:21: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^ HaLeX_lib/Language/HaLex/Sentences.hs:161:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^ HaLeX_lib/Language/HaLex/Sentences.hs:161:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: d | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^ HaLeX_lib/Language/HaLex/Sentences.hs:161:64: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Data.List, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 161 | onePathDfa dfa@(Dfa v q s z d) = snd $ onePath ttdfa ttdfa [] (head z) s | ^^^^ [12 of 21] Compiling Language.HaLex.FaAsDiGraph ( HaLeX_lib/Language/HaLex/FaAsDiGraph.hs, nothing ) HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:31:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp is redundant except perhaps to import instances from Language.HaLex.RegExp To import instances alone, use: import Language.HaLex.RegExp() | 31 | import Language.HaLex.RegExp | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:32:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp2Fa is redundant except perhaps to import instances from Language.HaLex.RegExp2Fa To import instances alone, use: import Language.HaLex.RegExp2Fa() | 32 | import Language.HaLex.RegExp2Fa | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:36:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Minimize is redundant except perhaps to import instances from Language.HaLex.Minimize To import instances alone, use: import Language.HaLex.Minimize() | 36 | import Language.HaLex.Minimize | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:40:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa2graphviz :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> [Char] | 40 | ndfa2graphviz ndfa name = tographviz ndfa name "circle" "LR" (show . show) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:43:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa2graphviz2file :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> IO () | 43 | ndfa2graphviz2file ndfa name = | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:48:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2graphviz :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] | 48 | dfa2graphviz dfa name = | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:52:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2graphviz2file :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> IO () | 52 | dfa2graphviz2file dfa name = writeFile (name++".dot") (dfa2graphviz dfa name) | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:23: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:25: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:27: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: z | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:64:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: delta | 64 | tographviz ndfa@(Ndfa v q s z delta) name shape orientation showState = | ^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable t0 to type Integer in the following constraints (Show t0) arising from a use of mirroredInitialStates at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39-59 (Num t0) arising from a use of mirroredInitialStates at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:87:39-59 " In the first argument of createInitialArrows, namely (mirroredInitialStates s 1) In the first argument of (++), namely (createInitialArrows (mirroredInitialStates s 1) s) In the second argument of (++), namely (createInitialArrows (mirroredInitialStates s 1) s) ++ "\n}" | 87 | ++ (createInitialArrows (mirroredInitialStates s 1) s) | ^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:96:23: warning: [GHC-63397] [-Wname-shadowing] This binding for q shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:26 | 96 | | q <- qs | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:102:23: warning: [GHC-63397] [-Wname-shadowing] This binding for s shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:28 | 102 | showInitialState s = (showState s) | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:108:29: warning: [GHC-63397] [-Wname-shadowing] This binding for z shadows the existing binding bound at HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:79:30 | 108 | | z <- zs ] | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:116:28: warning: [GHC-40910] [-Wunused-matches] Defined but not used: x | 116 | mirroredInitialStates (x:xs) n = ("\"_newState_" ++ (show n) ++ "\"") : | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:135:29: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 135 | showNdfaArrows ndfa@(Ndfa v q s z delta) showState showLabel deadSt syncSt = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:135:31: warning: [GHC-40910] [-Wunused-matches] Defined but not used: s | 135 | showNdfaArrows ndfa@(Ndfa v q s z delta) showState showLabel deadSt syncSt = | ^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:151:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: groupMoves :: (Eq a, Eq sy) => [(a, Maybe sy, a)] -> [(a, [Maybe sy], a)] | 151 | groupMoves [] = [] | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:229:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphWithNoSyncSt :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] | 229 | dfa2DiGraphWithNoSyncSt dfa name = dfa2graphviz dfa name | ^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:231:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphIO :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> [Char] -> IO () | 231 | dfa2DiGraphIO dfa name fn = writeFile (fn++".gph") (dfa2graphviz dfa name ) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:231:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa2DiGraphIO | 231 | dfa2DiGraphIO dfa name fn = writeFile (fn++".gph") (dfa2graphviz dfa name ) | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:233:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfaDiGraphWithNoSyncStIO :: (Ord st, Show sy, Show st, Eq sy) => Dfa st sy -> [Char] -> FilePath -> IO () | 233 | dfaDiGraphWithNoSyncStIO dfa name fn = writeFile fn (dfa2graphviz dfa name) | ^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:236:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2DiGraphIO'' :: (Show sy, Ord st, Ord sy) => Dfa st sy -> [Char] -> IO () | 236 | dfa2DiGraphIO'' dfa name = dfa2DiGraphIO (beautifyDfa dfa) name name | ^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:236:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa2DiGraphIO'' | 236 | dfa2DiGraphIO'' dfa name = dfa2DiGraphIO (beautifyDfa dfa) name name | ^^^^^^^^^^^^^^^ [13 of 21] Compiling Language.HaLex.RegExpAsDiGraph ( HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs, nothing ) HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 26 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:58:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph' :: (Show sy, Ord sy) => RegExp sy -> [Char] -> [Char] | 58 | re2DiGraph' re name = dfa2graphviz dfa name | ^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:61:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph'' :: (Show sy, Ord sy) => RegExp sy -> [Char] -> [Char] | 61 | re2DiGraph'' re name = dfa2graphviz dfa name | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:65:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraph''' :: (Show sy, Eq sy) => RegExp sy -> [Char] -> [Char] | 65 | re2DiGraph''' re name = dfa2DiGraphWithNoSyncSt dfa name | ^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:68:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2DiGraphNdfa :: (Show sy, Eq sy) => RegExp sy -> [Char] -> [Char] | 68 | re2DiGraphNdfa re name = ndfa2graphviz ndfa name | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:73:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re2DiGraphIO | 73 | re2DiGraphIO er name = dfa2graphviz2file dfa name | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:77:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: absRe2DiGraph_File :: (Show sy, Eq sy) => RegExp sy -> [Char] -> IO () | 77 | absRe2DiGraph_File er name = | ^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/RegExpAsDiGraph.hs:77:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: absRe2DiGraph_File | 77 | absRe2DiGraph_File er name = | ^^^^^^^^^^^^^^^^^^ [14 of 21] Compiling Language.HaLex.Fa2RegExp ( HaLeX_lib/Language/HaLex/Fa2RegExp.hs, nothing ) HaLeX_lib/Language/HaLex/Fa2RegExp.hs:25:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 25 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Util is redundant except perhaps to import instances from Language.HaLex.Util To import instances alone, use: import Language.HaLex.Util() | 26 | import Language.HaLex.Util | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:49:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: toRegExp2 :: [sy] -> RegExp sy | 49 | toRegExp2 [] = Epsilon | ^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:71:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: toRegExp2' :: [Maybe sy] -> RegExp sy | 71 | toRegExp2' [] = Epsilon | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:74:29: warning: [GHC-63397] [-Wname-shadowing] This binding for x shadows the existing binding bound at HaLeX_lib/Language/HaLex/Fa2RegExp.hs:72:13 | 74 | (Just x ) -> Literal x | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:77:29: warning: [GHC-63397] [-Wname-shadowing] This binding for x shadows the existing binding bound at HaLeX_lib/Language/HaLex/Fa2RegExp.hs:75:13 | 77 | (Just x ) -> Or (Literal x) (toRegExp2' xs) | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:104:28: warning: [GHC-40910] [-Wunused-local-binds] Defined but not used: q | 104 | dfa2RegExp dfa = let Dfa v q s z delta = beautifyDfa dfa | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:113:24: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 113 | dfa2RegExp' dfa@(Dfa v q s z delta) = applyD delta v s z (sizeDfa dfa) | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:124:8: warning: [GHC-40910] [-Wunused-matches] Defined but not used: d | 124 | applyD d v _ [] _ = Empty | ^ HaLeX_lib/Language/HaLex/Fa2RegExp.hs:124:10: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 124 | applyD d v _ [] _ = Empty | ^ [15 of 21] Compiling Language.HaLex.Examples.Robot ( HaLeX_lib/Language/HaLex/Examples/Robot.lhs, nothing ) HaLeX_lib/Language/HaLex/Examples/Robot.lhs:21:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ex :: Dfa String String | 21 | ex = Dfa ["esquerda","direita","largar","pegar"] | ^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:42:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves :: [String] | 42 | moves = ["direita","pegar","esquerda","largar"] | ^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:43:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves2 :: [String] | 43 | moves2 = ["esquerda","pegar","direita","pegar","esquerda","largar"] | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:44:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves3 :: [String] | 44 | moves3 = ["esquerda","pegar","direita"] | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:45:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: moves4 :: [String] | 45 | moves4 = moves2 ++ moves | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:47:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: g :: IO () | 47 | g = dfa2graphviz2file ex "xxx" | ^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:81:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: acc :: Maybe Bool | 81 | acc = DfaMonad.dfaaccept robotM moves4 | ^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:118:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: acc2 :: IO Bool | 118 | acc2 = DfaMonad.dfaaccept robotM2 moves4 | ^^^^ HaLeX_lib/Language/HaLex/Examples/Robot.lhs:121:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: exShow :: IO () | 121 | exShow = do d <- DfaMonad.showInDot robotM2 True | ^^^^^^ [16 of 21] Compiling Language.HaLex.Equivalence ( HaLeX_lib/Language/HaLex/Equivalence.hs, nothing ) HaLeX_lib/Language/HaLex/Equivalence.hs:76:40: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 76 | equivREs re = or (map (equivRE reFst) (tail re)) | ^^^^ HaLeX_lib/Language/HaLex/Equivalence.hs:77:17: warning: [GHC-63394] [-Wx-partial] In the use of head (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 77 | where reFst = head re | ^^^^ [17 of 21] Compiling Language.HaLex.FaClasses ( HaLeX_lib/Language/HaLex/FaClasses.hs, nothing ) [18 of 21] Compiling Language.HaLex.Test_HaLex_Quickcheck ( HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs, nothing ) HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:22:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExp2Fa is redundant except perhaps to import instances from Language.HaLex.RegExp2Fa To import instances alone, use: import Language.HaLex.RegExp2Fa() | 22 | import Language.HaLex.RegExp2Fa | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:23:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExpParser is redundant except perhaps to import instances from Language.HaLex.RegExpParser To import instances alone, use: import Language.HaLex.RegExpParser() | 23 | import Language.HaLex.RegExpParser | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:24:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.FaOperations is redundant except perhaps to import instances from Language.HaLex.FaOperations To import instances alone, use: import Language.HaLex.FaOperations() | 24 | import Language.HaLex.FaOperations | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:25:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Minimize is redundant except perhaps to import instances from Language.HaLex.Minimize To import instances alone, use: import Language.HaLex.Minimize() | 25 | import Language.HaLex.Minimize | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:26:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Sentences is redundant except perhaps to import instances from Language.HaLex.Sentences To import instances alone, use: import Language.HaLex.Sentences() | 26 | import Language.HaLex.Sentences | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:27:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.FaClasses is redundant except perhaps to import instances from Language.HaLex.FaClasses To import instances alone, use: import Language.HaLex.FaClasses() | 27 | import Language.HaLex.FaClasses | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:31:1: warning: [GHC-66111] [-Wunused-imports] The import of Control.Monad is redundant except perhaps to import instances from Control.Monad To import instances alone, use: import Control.Monad() | 31 | import Control.Monad | ^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:35:1: warning: [GHC-90177] [-Worphans] Orphan class instance: instance Arbitrary (RegExp Char) Suggested fix: Move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 35 | instance Arbitrary (RegExp Char) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:45:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in 18 further locations. Suggested fix: Please use spaces instead. | 45 | ,(2 , genDigits) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:64:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: digRegExp' :: RegExp Char | 64 | digRegExp' = foldr (\l r -> Or (Literal (intToDigit l)) | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:68:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: genRegExp' :: Integral a => a -> Gen (RegExp Char) | 68 | genRegExp' size | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:80:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: exRegExp :: IO () | 80 | exRegExp = sample (arbitrary :: Gen (RegExp Char)) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:93:17: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:1 | 93 | genDfaSentences dfa@(Dfa _ _ s z _) = genStrDfa tt syncStates s z | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:118:30: warning: [GHC-40910] [-Wunused-matches] Defined but not used: v | 118 | genNdfa_Sentences ndfa@(Ndfa v q s z d) = | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:118:32: warning: [GHC-40910] [-Wunused-matches] Defined but not used: q | 118 | genNdfa_Sentences ndfa@(Ndfa v q s z d) = | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:118:38: warning: [GHC-40910] [-Wunused-matches] Defined but not used: d | 118 | genNdfa_Sentences ndfa@(Ndfa v q s z d) = | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:133:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: maybeToList :: Maybe a -> [a] | 133 | maybeToList (Just x) = [x] | ^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa :: Dfa Integer Char | 178 | dfa = Dfa "abc" [1,2,3,4] 1 [4] d | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:18: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable st0 to type Integer in the following constraints (Num st0) arising from the literal 1 at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:18 (Eq st0) arising from a use of d at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178:33 " In the expression: 1 In the second argument of Dfa, namely [1, 2, 3, 4] In the expression: Dfa "abc" [1, 2, 3, 4] 1 [4] d | 178 | dfa = Dfa "abc" [1,2,3,4] 1 [4] d | ^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa2 :: Dfa Integer Char | 189 | dfa2 = Dfa "abc" [1,2,3,4] 1 [5] d | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:19: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable st0 to type Integer in the following constraints (Num st0) arising from the literal 1 at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:19 (Eq st0) arising from a use of d at HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189:34 " In the expression: 1 In the second argument of Dfa, namely [1, 2, 3, 4] In the expression: Dfa "abc" [1, 2, 3, 4] 1 [5] d | 189 | dfa2 = Dfa "abc" [1,2,3,4] 1 [5] d | ^ [19 of 21] Compiling Language.HaLex.Test_HaLex ( HaLeX_lib/Language/HaLex/Test_HaLex.hs, nothing ) HaLeX_lib/Language/HaLex/Test_HaLex.hs:31:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 31 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:47:14: warning: [GHC-63397] [-Wname-shadowing] This binding for ndfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1 | 47 | test_size_fa ndfa = TestList [ sizeFa dfa_min <= sizeFa dfa ~?= True | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:50:16: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1 | 50 | where dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:51:16: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa_min shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1 | 51 | dfa_min = minimizeDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:60:20: warning: [GHC-63397] [-Wname-shadowing] This binding for re shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:78:1 | 60 | test_gen_sentences re = | ^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:67:14: warning: [GHC-63397] [-Wname-shadowing] This binding for ndfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1 | 67 | ndfa = regExp2Ndfa re | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:68:14: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1 | 68 | dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:69:14: warning: [GHC-63397] [-Wname-shadowing] This binding for dfa_min shadows the existing binding defined at HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1 | 69 | dfa_min = minimizeDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:78:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re :: RegExp Char | 78 | re = fromJust $ parseRegExp "('+'|'-')?[0-9]*('.'?)[0-9]+" | ^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:78:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re | 78 | re = fromJust $ parseRegExp "('+'|'-')?[0-9]*('.'?)[0-9]+" | ^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:81:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re'' :: RegExp Char | 81 | re'' = fromJust $ parseRegExp "a[^a]*a" | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:81:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re'' | 81 | re'' = fromJust $ parseRegExp "a[^a]*a" | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: ndfa :: Ndfa Int Char | 84 | ndfa = regExp2Ndfa re | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:84:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ndfa | 84 | ndfa = regExp2Ndfa re | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa :: Dfa [Int] Char | 85 | dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:85:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa | 85 | dfa = ndfa2dfa ndfa | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:86:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_int :: Dfa Int Char | 86 | dfa_int = beautifyDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:86:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa_int | 86 | dfa_int = beautifyDfa dfa | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_min :: Dfa [[Int]] Char | 88 | dfa_min = minimizeDfa dfa_int | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:88:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa_min | 88 | dfa_min = minimizeDfa dfa_int | ^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:89:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_min' :: Dfa Int Char | 89 | dfa_min' = beautifyDfa dfa_min | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:89:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfa_min' | 89 | dfa_min' = beautifyDfa dfa_min | ^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:92:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: test_acceptNdfa :: Test | 92 | test_acceptNdfa = TestList [ ndfaaccept ndfa "109" ~?= True | ^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:92:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: test_acceptNdfa | 92 | test_acceptNdfa = TestList [ ndfaaccept ndfa "109" ~?= True | ^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:101:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: test_acceptDfa :: Test | 101 | test_acceptDfa = TestList [ dfaaccept dfa "109" ~?= True | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:101:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: test_acceptDfa | 101 | test_acceptDfa = TestList [ dfaaccept dfa "109" ~?= True | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:110:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: test_acceptDfamin :: Test | 110 | test_acceptDfamin = TestList [ dfaaccept dfa_min "109" ~?= True | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:110:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: test_acceptDfamin | 110 | test_acceptDfamin = TestList [ dfaaccept dfa_min "109" ~?= True | ^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:120:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfaToHaskell :: IO () | 120 | dfaToHaskell = toHaskell dfa_int "Dfa_RE" | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:120:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: dfaToHaskell | 120 | dfaToHaskell = toHaskell dfa_int "Dfa_RE" | ^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:123:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re' :: RegExp Char | 123 | re' = fromJust $ parseRegExp "[a-z][a-z]*" | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:123:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: re' | 123 | re' = fromJust $ parseRegExp "[a-z][a-z]*" | ^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:127:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: main :: IO Counts | 127 | main = do runTestTT test_acceptNdfa | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:127:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: main | 127 | main = do runTestTT test_acceptNdfa | ^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:127:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT test_acceptNdfa | 127 | main = do runTestTT test_acceptNdfa | ^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:128:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT test_acceptDfa | 128 | runTestTT test_acceptDfa | ^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:129:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT test_acceptDfamin | 129 | runTestTT test_acceptDfamin | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:130:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT $ test_size_fa (regExp2Ndfa re) | 130 | runTestTT $ test_size_fa (regExp2Ndfa re) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:131:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT $ test_size_fa (regExp2Ndfa re') | 131 | runTestTT $ test_size_fa (regExp2Ndfa re') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Test_HaLex.hs:132:11: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type Counts Suggested fix: Suppress this warning by saying _ <- runTestTT $ test_gen_sentences re | 132 | runTestTT $ test_gen_sentences re | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [20 of 21] Compiling Language.HaLex.Examples.Real ( HaLeX_lib/Language/HaLex/Examples/Real.lhs, nothing ) HaLeX_lib/Language/HaLex/Examples/Real.lhs:49:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 49 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:59:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.RegExpAsDiGraph is redundant except perhaps to import instances from Language.HaLex.RegExpAsDiGraph To import instances alone, use: import Language.HaLex.RegExpAsDiGraph() | 59 | import Language.HaLex.RegExpAsDiGraph | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:62:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Fa2RegExp is redundant except perhaps to import instances from Language.HaLex.Fa2RegExp To import instances alone, use: import Language.HaLex.Fa2RegExp() | 62 | import Language.HaLex.Fa2RegExp | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:70:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: sinal'' :: RegExp Char | 70 | sinal'' = (Literal '-') `Or` (Literal '+') `Or` Epsilon | ^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:72:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: d :: RegExp Char | 72 | d = Literal 'd' | ^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:75:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re_int :: RegExp Char | 75 | re_int = sinal'' `Then` d `Then` (Star d) | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:78:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: intdfa :: Dfa Int Char | 78 | intdfa = (beautifyDfa . ndfa2dfa . regExp2Ndfa) re_int | ^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:81:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: d' :: RegExp Char | 81 | d' = (Literal '0') `Or` (Literal '1') `Or` (Literal '2') `Or` | ^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:87:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re_real :: RegExp Char | 87 | re_real = sinal'' `Then` (Star d') | ^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:91:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re_real' :: RegExp Char | 91 | re_real' = sinal'' `Then` (Star d) | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:98:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: cre_real :: String | 98 | cre_real = "('+'|'-')?d*('.')?d+" | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:101:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa' :: Dfa Int Char | 101 | realdfa' = (beautifyDfa . ndfa2dfa . regExp2Ndfa) re_real | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:103:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa'' :: Dfa Int Char | 103 | realdfa'' = (beautifyDfa . minimizeDfa . ndfa2dfa . regExp2Ndfa) re_real' | ^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:105:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa''' :: Dfa Int Char | 105 | realdfa''' = (beautifyDfa . stdMinimizeDfa . ndfa2dfa . regExp2Ndfa) re_real' | ^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:109:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa'''' :: Dfa Int Char | 109 | realdfa'''' = beautifyDfa . minimizeNdfa . regExp2Ndfa $ re_real' | ^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:111:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: genGraph :: (Ord st, Show sy, Show st, Eq sy) => Ndfa st sy -> [Char] -> [Char] -> (st -> [Char]) -> IO () | 111 | genGraph fa = tographvizIO fa "exp" | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:114:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realdfa :: Dfa Char Char | 114 | realdfa = Dfa ['+','-','.','0','1','2','3','4','5','6','7','8','9'] | ^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:176:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: realndfa :: Ndfa Char Char | 176 | realndfa = Ndfa ['+','-','.','0','1','2','3','4','5','6','7','8','9'] | ^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:182:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: deltaNdfa :: Char -> Maybe Char -> [Char] | 182 | deltaNdfa 'A' (Just '+') = ['B'] | ^^^^^^^^^ HaLeX_lib/Language/HaLex/Examples/Real.lhs:227:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: isrealNdfa :: [Char] -> Bool | 227 | isrealNdfa = Fa.accept realndfa | ^^^^^^^^^^ [21 of 21] Compiling Language.HaLex.Dfa2MDfa ( HaLeX_lib/Language/HaLex/Dfa2MDfa.hs, nothing ) HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:19:1: warning: [GHC-66111] [-Wunused-imports] The import of Data.List is redundant except perhaps to import instances from Data.List To import instances alone, use: import Data.List() | 19 | import Data.List | ^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:21:1: warning: [GHC-66111] [-Wunused-imports] The import of Language.HaLex.Ndfa is redundant except perhaps to import instances from Language.HaLex.Ndfa To import instances alone, use: import Language.HaLex.Ndfa() | 21 | import Language.HaLex.Ndfa | ^^^^^^^^^^^^^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:28:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: showAsAccumDfa :: (Show sy, Show st) => Dfa st sy -> String -> String | 28 | showAsAccumDfa (Dfa v q s z delta) = | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:48:5: warning: [GHC-63397] [-Wname-shadowing] This binding for f shadows the existing binding defined at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:108:1 | 48 | f = zipWith3 showF m n q' | ^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:74:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: re2MHaskellMod :: (Show sy, Ord sy) => RegExp sy -> Bool -> Bool -> [Char] | 74 | re2MHaskellMod re m b = "module GenMDfa where\n\n" ++ | ^^^^^^^^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:108:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: f :: Maybe (RegExp sy) -> RegExp sy | 108 | f (Just p ) = p | ^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:116:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: dfa_int :: Dfa Integer Char | 116 | dfa_int = Dfa ['+','-','0','1'] | ^^^^^^^ HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:117:16: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable st0 to type Integer in the following constraints (Num st0) arising from the literal 1 at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:117:16 (Eq st0) arising from a use of delta at HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:120:15-19 " In the expression: 1 In the second argument of Dfa, namely [1, 2, 3, 4] In the expression: Dfa ['+', '-', '0', '1'] [1, 2, 3, 4] 1 [3] delta | 117 | [1,2,3,4] | ^ Haddock coverage: 0% ( 0 / 10) in 'Language.HaLex.Parser' Missing documentation for: Module header Parser (HaLeX_lib/Language/HaLex/Parser.hs:29) symbol (HaLeX_lib/Language/HaLex/Parser.hs:37) satisfy (HaLeX_lib/Language/HaLex/Parser.hs:42) token (HaLeX_lib/Language/HaLex/Parser.hs:47) succeed (HaLeX_lib/Language/HaLex/Parser.hs:52) <|> (HaLeX_lib/Language/HaLex/Parser.hs:59) <*> (HaLeX_lib/Language/HaLex/Parser.hs:62) <$> (HaLeX_lib/Language/HaLex/Parser.hs:67) oneOrMore (HaLeX_lib/Language/HaLex/Parser.hs:75) 100% ( 4 / 4) in 'Language.HaLex.Util' 100% ( 16 / 16) in 'Language.HaLex.RegExp' 100% ( 2 / 2) in 'Language.HaLex.RegExpParser' Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 97% ( 36 / 37) in 'Language.HaLex.Dfa' Missing documentation for: beautifyDfaWithSyncSt (HaLeX_lib/Language/HaLex/Dfa.hs:278) Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 100% ( 30 / 30) in 'Language.HaLex.Ndfa' 0% ( 0 / 46) in 'Language.HaLex.DfaMonad' Missing documentation for: Module header Dfa (HaLeX_lib/Language/HaLex/DfaMonad.lhs:42) dfawalk (HaLeX_lib/Language/HaLex/DfaMonad.lhs:56) dfaaccept' (HaLeX_lib/Language/HaLex/DfaMonad.lhs:62) dfaaccept (HaLeX_lib/Language/HaLex/DfaMonad.lhs:67) runDfa (HaLeX_lib/Language/HaLex/DfaMonad.lhs:78) showDfa (HaLeX_lib/Language/HaLex/DfaMonad.lhs:86) showDfaDelta (HaLeX_lib/Language/HaLex/DfaMonad.lhs:102) showInDot (HaLeX_lib/Language/HaLex/DfaMonad.lhs:126) showElemsListPerLine (HaLeX_lib/Language/HaLex/DfaMonad.lhs:139) showInitialState (HaLeX_lib/Language/HaLex/DfaMonad.lhs:142) showFinalStates' (HaLeX_lib/Language/HaLex/DfaMonad.lhs:146) showArrows (HaLeX_lib/Language/HaLex/DfaMonad.lhs:151) buildLine (HaLeX_lib/Language/HaLex/DfaMonad.lhs:157) <-> (HaLeX_lib/Language/HaLex/DfaMonad.lhs:167) xpto (HaLeX_lib/Language/HaLex/DfaMonad.lhs:172) deadstates (HaLeX_lib/Language/HaLex/DfaMonad.lhs:183) deadstates' (HaLeX_lib/Language/HaLex/DfaMonad.lhs:186) isStDead (HaLeX_lib/Language/HaLex/DfaMonad.lhs:198) isSyncState (HaLeX_lib/Language/HaLex/DfaMonad.lhs:207) robot (HaLeX_lib/Language/HaLex/DfaMonad.lhs:221) moves (HaLeX_lib/Language/HaLex/DfaMonad.lhs:245) moves2 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:246) moves3 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:247) moves4 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:248) acc (HaLeX_lib/Language/HaLex/DfaMonad.lhs:250) varGlob (HaLeX_lib/Language/HaLex/DfaMonad.lhs:270) ex2 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:273) ex3 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:338) runAccept (HaLeX_lib/Language/HaLex/DfaMonad.lhs:353) ex4 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:367) runAccept_ex4 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:380) ex5 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:394) runAccept_ex5 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:406) ex_int (HaLeX_lib/Language/HaLex/DfaMonad.lhs:423) runAccept_int (HaLeX_lib/Language/HaLex/DfaMonad.lhs:446) ex6 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:462) runAccept_ex6 (HaLeX_lib/Language/HaLex/DfaMonad.lhs:494) Instr (HaLeX_lib/Language/HaLex/DfaMonad.lhs:508) Code (HaLeX_lib/Language/HaLex/DfaMonad.lhs:510) te (HaLeX_lib/Language/HaLex/DfaMonad.lhs:523) runAccept_te (HaLeX_lib/Language/HaLex/DfaMonad.lhs:567) pr (HaLeX_lib/Language/HaLex/DfaMonad.lhs:585) converte (HaLeX_lib/Language/HaLex/DfaMonad.lhs:616) expo (HaLeX_lib/Language/HaLex/DfaMonad.lhs:620) runAccept_pr (HaLeX_lib/Language/HaLex/DfaMonad.lhs:624) Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 93% ( 15 / 16) in 'Language.HaLex.FaOperations' Missing documentation for: stsDfa (HaLeX_lib/Language/HaLex/FaOperations.hs:59) Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 100% ( 4 / 4) in 'Language.HaLex.RegExp2Fa' Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 100% ( 10 / 10) in 'Language.HaLex.Minimize' 100% ( 5 / 5) in 'Language.HaLex.Sentences' Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 75% ( 9 / 12) in 'Language.HaLex.FaAsDiGraph' Missing documentation for: dfa2DiGraphWithNoSyncSt (HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:229) dfaDiGraphWithNoSyncStIO (HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:233) genOneArrow (HaLeX_lib/Language/HaLex/FaAsDiGraph.hs:196) 100% ( 2 / 2) in 'Language.HaLex.RegExpAsDiGraph' Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 100% ( 5 / 5) in 'Language.HaLex.Fa2RegExp' 0% ( 0 / 12) in 'Language.HaLex.Examples.Robot' Missing documentation for: Module header ex (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:21) moves (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:42) moves2 (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:43) moves3 (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:44) moves4 (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:45) g (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:47) robotM (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:58) acc (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:81) robotM2 (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:93) acc2 (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:118) exShow (HaLeX_lib/Language/HaLex/Examples/Robot.lhs:121) Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 100% ( 5 / 5) in 'Language.HaLex.Equivalence' Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 100% ( 2 / 2) in 'Language.HaLex.FaClasses' 7% ( 1 / 13) in 'Language.HaLex.Test_HaLex_Quickcheck' Missing documentation for: genRegExp (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:41) digRegExp (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:62) digRegExp' (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:64) genRegExp' (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:68) exRegExp (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:80) genDfaSentences (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:93) genStrDfa (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:103) genNdfa_Sentences (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:118) genStrNdfa (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:125) maybeToList (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:133) dfa (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:178) dfa2 (HaLeX_lib/Language/HaLex/Test_HaLex_Quickcheck.hs:189) Warning: 'Ndfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:19 * at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Ndfa.hs:61:1 Warning: 'Dfa' is ambiguous. It is defined * at HaLeX_lib/Language/HaLex/Dfa.hs:68:18 * at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at HaLeX_lib/Language/HaLex/Dfa.hs:68:1 100% ( 3 / 3) in 'Language.HaLex.Test_HaLex' 0% ( 0 / 20) in 'Language.HaLex.Examples.Real' Missing documentation for: Module header sinal'' (HaLeX_lib/Language/HaLex/Examples/Real.lhs:70) d (HaLeX_lib/Language/HaLex/Examples/Real.lhs:72) re_int (HaLeX_lib/Language/HaLex/Examples/Real.lhs:75) intdfa (HaLeX_lib/Language/HaLex/Examples/Real.lhs:78) d' (HaLeX_lib/Language/HaLex/Examples/Real.lhs:81) re_real (HaLeX_lib/Language/HaLex/Examples/Real.lhs:87) re_real' (HaLeX_lib/Language/HaLex/Examples/Real.lhs:91) cre_real (HaLeX_lib/Language/HaLex/Examples/Real.lhs:98) realdfa' (HaLeX_lib/Language/HaLex/Examples/Real.lhs:101) realdfa'' (HaLeX_lib/Language/HaLex/Examples/Real.lhs:103) realdfa''' (HaLeX_lib/Language/HaLex/Examples/Real.lhs:105) realdfa'''' (HaLeX_lib/Language/HaLex/Examples/Real.lhs:109) genGraph (HaLeX_lib/Language/HaLex/Examples/Real.lhs:111) realdfa (HaLeX_lib/Language/HaLex/Examples/Real.lhs:114) delta_realdfa (HaLeX_lib/Language/HaLex/Examples/Real.lhs:121) isreal (HaLeX_lib/Language/HaLex/Examples/Real.lhs:155) realndfa (HaLeX_lib/Language/HaLex/Examples/Real.lhs:176) deltaNdfa (HaLeX_lib/Language/HaLex/Examples/Real.lhs:182) isrealNdfa (HaLeX_lib/Language/HaLex/Examples/Real.lhs:227) 0% ( 0 / 8) in 'Language.HaLex.Dfa2MDfa' Missing documentation for: Module header showAsAccumDfa (HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:28) showDfaMDelta (HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:46) dfa2MIO (HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:67) re2MHaskellMod (HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:74) re2MDfa (HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:84) f (HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:108) dfa_int (HaLeX_lib/Language/HaLex/Dfa2MDfa.hs:116) Warning: Language.HaLex.FaOperations: could not find link destinations for: - Language.HaLex.FaOperations.StDfa Documentation created: dist/doc/html/HaLeX/, dist/doc/html/HaLeX/HaLeX.txt Installing executable halex in /var/lib/hackage-doc-builder/build-cache/tmp-install/bin Warning: The directory /var/lib/hackage-doc-builder/build-cache/tmp-install/bin is not in the system search path. Installing library in /var/lib/hackage-doc-builder/build-cache/tmp-install/lib/x86_64-linux-ghc-9.8.4/HaLeX-1.3.0-E8ll7vVx1Qo7yXIFyvRa6s Completed HaLeX-1.3.0