Para quem programa em Haskell, a um nível mais avançado, certamente deparou-se com este erro ao usar Monad‘s:

haskell/State.hs:18:7:
Could not find module `Control.Monad.Reader’
Could not find module `Control.Monad.State’


Este erro acontece porque o compilador não encontra a biblioteca libghc6-mtl-dev.


E como se sabe que biblioteca o ghc, ou outro compilador semelhante, quer? A resposta é fácil, corra a linha seguinte no terminal:

apt-cache search haskell | grep -i monad

Esta linha procura todas as bibliotecas relacionadas com Haskell, e filtra-as, mostrando as que contem a palavra monad. Assim, o resultado é:

libghc6-mtl-dev – Haskell monad transformer library for GHC
libghc6-mtl-doc – Haskell monad transformer library for GHC; documentation
libghc6-mtl-prof – Haskell monad transformer library for GHC; profiling libraries


Portanto, a biblioteca que se tem de instalar é libghc6-mtl-dev. Sempre que precisar de alguma biblioteca basta seguir o mesmo raciocínio.

Clique aqui para instalar a biblioteca libghc6-mtl-dev.

ou no terminal:

sudo apt-get install libghc6-mtl-dev



13 Respostas ate agora.

  1. None diz:

    5 mcg/d; maintenance dose: 125 mcg/d), all abnormal laboratory values associated with hypothyroidism returned to normal. ,

  2. 4 mg was added for the last seven days of each period. ,

  3. The tablet film coating, OPADRY

  4. Reyataz/ritonavir has not been studied in subjects with hepatic impairment and is not recommended. ,

  5. This is very important because the amount of virus in your blood may increase if the medicine is stopped for even a short period of time. ,

  6. MetabolicOne study has reported an average weight gain of 8. ,

  7. 6, gelatin, iron oxides (15 mg capsules only), lactose, magnesium stearate, titanium dioxide. ,

  8. [...] Biblioteca de Monad’s para o Haskell [...]

Deixe um comentario


Pesquisar


Publicidade

  • Forum Do Ubuntued
  • Ubuntu Dicas
  • Ubuntu-BR-SC
  • Tomates Podres
  • Servidores com Ubuntu desde 5$ do mês
  • Anuncie no Ubuntued!