<div dir="ltr">If you pass `--force` those listed packages will also be unregistered, which is fine. I'm not sure if there's a difference between doing that and unregistering each package by itself...<div><br><div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 25, 2015 at 3:44 PM, Peng Yu <span dir="ltr"><<a href="mailto:pengyu.ut@gmail.com" target="_blank">pengyu.ut@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I got this. What shall I do next?<br>
<br>
~$ ghc-pkg unregister hourglass<br>
ghc-pkg: unregistering hourglass would break the following packages:<br>
crypto-pubkey-types-0.4.3 asn1-encoding-0.9.0 asn1-types-0.3.0 (use<br>
--force to override)<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Sat, Apr 25, 2015 at 2:09 AM, Adam Bergmark <<a href="mailto:adam@bergmark.nl">adam@bergmark.nl</a>> wrote:<br>
> HI Peng,<br>
><br>
> Something might have messed up the hourglass-0.2.9 installation. I would try<br>
> `ghc-pkg unregister hourglass` (`cabal sandbox hc-pkg unregister hourglass`<br>
> if in a sandbox) and then trying again.<br>
><br>
> HTH,<br>
> Adam<br>
><br>
><br>
> On Sat, Apr 25, 2015 at 2:12 AM, Peng Yu <<a href="mailto:pengyu.ut@gmail.com">pengyu.ut@gmail.com</a>> wrote:<br>
>><br>
>> I got the following error. I am not sure how to fix the problem. Could<br>
>> anybody let me know what I should do? Thanks.<br>
>><br>
>> ~$ cabal install --reinstall --force-reinstall asn1-types<br>
>> Resolving dependencies...<br>
>> Warning: The following packages are likely to be broken by the reinstalls:<br>
>> crypto-pubkey-types-0.4.3<br>
>> asn1-encoding-0.9.0<br>
>> Continuing even though the plan contains dangerous reinstalls.<br>
>> Downloading asn1-types-0.3.0...<br>
>> Configuring asn1-types-0.3.0...<br>
>> Building asn1-types-0.3.0...<br>
>> Failed to install asn1-types-0.3.0<br>
>> Build log ( /Users/py/.cabal/logs/asn1-types-0.3.0.log ):<br>
>> Configuring asn1-types-0.3.0...<br>
>> Building asn1-types-0.3.0...<br>
>> Preprocessing library asn1-types-0.3.0...<br>
>><br>
>> Data/ASN1/Types.hs:23:8:<br>
>>     Could not find module ‘Data.Hourglass’<br>
>>     There are files missing in the ‘hourglass-0.2.9’ package,<br>
>>     try running 'ghc-pkg check'.<br>
>>     Use -v to see a list of the files searched for.<br>
>> cabal: Error: some packages failed to install:<br>
>> asn1-types-0.3.0 failed during the building phase. The exception was:<br>
>> ExitFailure 1<br>
>><br>
>><br>
>> --<br>
>> Regards,<br>
>> Peng<br>
>> _______________________________________________<br>
>> cabal-devel mailing list<br>
>> <a href="mailto:cabal-devel@haskell.org">cabal-devel@haskell.org</a><br>
>> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Regards,<br>
Peng<br>
</font></span></blockquote></div><br></div>