Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-search-demo no longer compiles #2

Open
Mikolaj opened this issue Apr 16, 2019 · 0 comments
Open

build-search-demo no longer compiles #2

Mikolaj opened this issue Apr 16, 2019 · 0 comments

Comments

@Mikolaj
Copy link
Member

Mikolaj commented Apr 16, 2019

APIs probably have changed.

~/r/full-text-search$ cabal build -fbuild-search-demo
[...]
Preprocessing executable 'search-demo' for full-text-search-0.2.1.4..
Building executable 'search-demo' for full-text-search-0.2.1.4..
[1 of 9] Compiling ExtractNameTerms ( demo/ExtractNameTerms.hs, /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/ExtractNameTerms.o )

demo/ExtractNameTerms.hs:60:41: warning: [-Wdeprecations]
    In the use of type constructor or class ‘ListT’
    (imported from Control.Monad.List, but defined in Control.Monad.Trans.List):
    Deprecated: "This transformer is invalid on most monads"
   |
60 | newtype Split a = Split (StateT String (ListT (WriterT [String] Identity)) a)
   |                                         ^^^^^

demo/ExtractNameTerms.hs:70:43: warning: [-Wdeprecations]
    In the use of ‘runListT’
    (imported from Control.Monad.List, but defined in Control.Monad.Trans.List):
    Deprecated: "This transformer is invalid on most monads"
   |
70 | runSplitter (Split m) s = snd (runWriter (runListT (runStateT m s)))
   |                                           ^^^^^^^^
[2 of 9] Compiling HaddockTypes     ( demo/HaddockTypes.hs, /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/HaddockTypes.o )
[3 of 9] Compiling HaddockLex       ( /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/HaddockLex.hs, /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/HaddockLex.o )

demo/HaddockLex.x:121:28: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In a case alternative: Patterns not matched: []
    |
121 | alexGetByte (_,[],(c:s)) = case utf8Encode c of
    |                            ^^^^^^^^^^^^^^^^^^^^...
[4 of 9] Compiling HaddockHtml      ( demo/HaddockHtml.hs, /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/HaddockHtml.o )
[5 of 9] Compiling HaddockParse     ( /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/HaddockParse.hs, /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/HaddockParse.o )
[6 of 9] Compiling ExtractDescriptionTerms ( demo/ExtractDescriptionTerms.hs, /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/ExtractDescriptionTerms.o )
[7 of 9] Compiling PackageIndexUtils ( demo/PackageIndexUtils.hs, /home/mikolaj/r/full-text-search/dist-newstyle/build/x86_64-linux/ghc-8.6.4/full-text-search-0.2.1.4/x/search-demo/build/search-demo/search-demo-tmp/PackageIndexUtils.o )

demo/PackageIndexUtils.hs:23:1: error:
    Could not find module ‘Distribution.PackageDescription.Parse’
    Perhaps you meant
      Distribution.PackageDescription.Parsec (from Cabal-2.4.0.1)
      Distribution.PackageDescription.Parsec (needs flag -package-key Cabal-2.4.1.0)
      Distribution.PackageDescription.Check (from Cabal-2.4.0.1)
    Use -v to see a list of the files searched for.
   |
23 | import Distribution.PackageDescription.Parse
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

demo/PackageIndexUtils.hs:30:12: error:
    Module ‘Distribution.Simple.Utils’ does not export ‘fromUTF8’
   |
30 |          ( fromUTF8 )
   |            ^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant