stschiff / sequenceTools

Other
39 stars 10 forks source link

fails to build in Stackage Nightly #32

Closed juhp closed 1 year ago

juhp commented 1 year ago
       Building executable 'pileupCaller' for sequenceTools-1.5.2..                                                      [11/193279]
       [1 of 1] Compiling Main                                    

       /var/stackage/work/unpack-dir/unpacked/sequenceTools-1.5.2-59aa3501e4eae984d3e08833c5455c4d854b19846a078e1d7e5e4b24ee16a5f1/s
rc-executables/pileupCaller.hs:321:59: error:                                                                                       
           • Couldn't match type ‘EigenstratIndEntry’                                                                               
                            with ‘SequenceFormats.Plink.PlinkFamEntry’                                                              
             Expected: FilePath                                                                                                                            -> FilePath           
                       -> FilePath                                
                       -> [SequenceFormats.Plink.PlinkFamEntry]   
                       -> Pipes.Core.Consumer                     
                            (EigenstratSnpEntry, SequenceFormats.Eigenstrat.GenoLine) m ()                                          
               Actual: FilePath
                       -> FilePath
                       -> FilePath
                       -> [EigenstratIndEntry]
                       -> Pipes.Core.Consumer
                            (EigenstratSnpEntry, SequenceFormats.Eigenstrat.GenoLine) m ()
           • In the expression: writeEigenstrat
             In the expression:
               if formatIsPlink then writePlink else writeEigenstrat
             In an equation for ‘writeFunc’:
                 writeFunc = if formatIsPlink then writePlink else writeEigenstrat
           |
       321 |     let writeFunc = if formatIsPlink then writePlink else writeEigenstrat
           |                                                           ^^^^^^^^^^^^^^^

       /var/stackage/work/unpack-dir/unpacked/sequenceTools-1.5.2-59aa3501e4eae984d3e08833c5455c4d854b19846a078e1d7e5e4b24ee16a5f1/s
rc-executables/pileupCaller.hs:325:49: error:
           • Couldn't match type ‘EigenstratIndEntry’
                            with ‘SequenceFormats.Plink.PlinkFamEntry’
             Expected: [SequenceFormats.Plink.PlinkFamEntry]
               Actual: [EigenstratIndEntry]
           • In the fourth argument of ‘writeFunc’, namely ‘indEntries’
             In the second argument of ‘(>->)’, namely
               ‘writeFunc genoOut snpOut indOut indEntries’
             In the second argument of ‘($)’, namely
               ‘freqSumProducer >-> filterTransitions transitionsMode
                  >-> P.map (freqSumToEigenstrat diploidizeCall)
                  >-> writeFunc genoOut snpOut indOut indEntries’
           |
       325 |                 writeFunc genoOut snpOut indOut indEntries
           |                                                 ^^^^^^^^^^
stschiff commented 1 year ago

Thank you. I'll take a look!

stschiff commented 1 year ago

This has been fixed in sequenceTools-1.5.3.1. Shall I do something to get it enabled again, @juhp?

juhp commented 1 year ago

Fastest way would be to open a stackage PR 👍🏻🙂

alaendle commented 1 year ago

@stschiff - Think you could just close this issue (or if you want to be 100% sure wait for the next Stackage Nightly and verify that this package is included).

stschiff commented 1 year ago

Thank you @alaendle. I must admit that I think now that packages that provide executables are not too useful in hackage and stackage anyway, in contrast to libraries. But anyway. Glad to be back in.