yesodweb/yesod — Issue #280: Failed to load interface for Application
Author: scan
Created: 2012-02-25 15:28:49+00:00
State: open

Hi, I've recently started a fresh yesod project and got that error when I tried to `yesod devel`.

My GHC is 7.4.1 and this is the error:

```
fluttershy:~/Haskell/helloworld$ cabal-dev install
# Installing
fluttershy:~/Haskell/helloworld$ yesod --dev devel
Yesod devel server. Press ENTER to quit
Resolving dependencies...
Configuring helloworld-0.0.0...
Rebuilding application...
Forcing recompile for ./Foundation.hs because of config/routes
Forcing recompile for ./Foundation.hs because of messages/en.msg
Forcing recompile for ./Foundation.hs because of templates/default-layout-wrapper.hamlet
Forcing recompile for ./Foundation.hs because of templates/default-layout.hamlet
Forcing recompile for ./Handler/Root.hs because of templates/homepage.hamlet
Preprocessing library helloworld-0.0.0...
Preprocessing executables for helloworld-0.0.0...
Building helloworld-0.0.0...
[1 of 6] Compiling Settings ( Settings.hs, dist/build/Settings.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package bytestring-0.9.2.1 ... linking ... done.
Loading package base64-bytestring-0.1.1.0 ... linking ... done.
Loading package array-0.4.0.0 ... linking ... done.
Loading package deepseq-1.3.0.0 ... linking ... done.
Loading package containers-0.4.2.1 ... linking ... done.
Loading package cereal-0.3.5.1 ... linking ... done.
Loading package base-unicode-symbols-0.2.2.3 ... linking ... done.
Loading package transformers-0.2.2.0 ... linking ... done.
Loading package transformers-base-0.4.1 ... linking ... done.
Loading package monad-control-0.3.1 ... linking ... done.
Loading package lifted-base-0.1.0.3 ... linking ... done.
Loading package text-0.11.1.13 ... linking ... done.
Loading package conduit-0.2.2 ... linking ... done.
Loading package entropy-0.2.1 ... linking ... done.
Loading package largeword-1.0.1 ... linking ... done.
Loading package dlist-0.5 ... linking ... done.
Loading package data-default-0.3.0 ... linking ... done.
Loading package semigroups-0.8 ... linking ... done.
Loading package tagged-0.2.3.1 ... linking ... done.
Loading package crypto-api-0.9 ... linking ... done.
Loading package crypto-conduit-0.1.3.1 ... linking ... done.
Loading package cryptohash-0.7.4 ... linking ... done.
Loading package filepath-1.3.0.0 ... linking ... done.
Loading package old-locale-1.0.0.4 ... linking ... done.
Loading package old-time-1.1.0.0 ... linking ... done.
Loading package unix-2.5.1.0 ... linking ... done.
Loading package directory-1.1.0.2 ... linking ... done.
Loading package pretty-1.1.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package file-embed-0.0.4.1 ... linking ... done.
Loading package blaze-builder-0.3.1.0 ... linking ... done.
Loading package hashable-1.1.2.3 ... linking ... done.
Loading package case-insensitive-0.4.0.1 ... linking ... done.
Loading package http-types-0.6.9 ... linking ... done.
Loading package unix-compat-0.3.0.1 ... linking ... done.
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package parsec-3.1.2 ... linking ... done.
Loading package network-2.3.0.11 ... linking ... done.
Loading package vault-0.1.0.0 ... linking ... done.
Loading package wai-1.1.0 ... linking ... done.
Loading package blaze-html-0.4.3.1 ... linking ... done.
Loading package attoparsec-0.10.1.1 ... linking ... done.
Loading package http-date-0.0.2 ... linking ... done.
Loading package time-1.4 ... linking ... done.
Loading package wai-app-static-1.1.1 ... linking ... done.
Loading package syb-0.3.6 ... linking ... done.
Loading package unordered-containers-0.1.4.6 ... linking ... done.
Loading package primitive-0.4.1 ... linking ... done.
Loading package vector-0.9.1 ... linking ... done.
Loading package aeson-0.6.0.0 ... linking ... done.
Loading package crypto-pubkey-types-0.1.1 ... linking ... done.
Loading package cryptocipher-0.3.0 ... linking ... done.
Loading package random-1.0.1.1 ... linking ... done.
Loading package cprng-aes-0.2.3 ... linking ... done.
Loading package skein-0.1.0.5 ... linking ... done.
Loading package clientsession-0.7.4 ... linking ... done.
Loading package cookie-0.4.0 ... linking ... done.
Loading package failure-0.2.0 ... linking ... done.
Loading package fast-logger-0.0.2 ... linking ... done.
Loading package process-1.1.0.1 ... linking ... done.
Loading package shakespeare-0.10.3.1 ... linking ... done.
Loading package hamlet-0.10.8 ... linking ... done.
Loading package path-pieces-0.1.0 ... linking ... done.
Loading package shakespeare-css-0.10.7 ... linking ... done.
Loading package shakespeare-i18n-0.0.2 ... linking ... done.
Loading package shakespeare-js-0.11.1 ... linking ... done.
Loading package blaze-builder-conduit-0.2.0 ... linking ... done.
Loading package zlib-0.5.3.3 ... linking ... done.
Loading package zlib-bindings-0.0.3.2 ... linking ... done.
Loading package zlib-conduit-0.2.0 ... linking ... done.
Loading package wai-extra-1.1.0 ... linking ... done.
Loading package byteorder-1.0.3 ... linking ... done.
Loading package wai-logger-0.1.4 ... linking ... done.
Loading package yesod-routes-0.0.1 ... linking ... done.
Loading package yesod-core-0.10.2.1 ... linking ... done.
Loading package yesod-static-0.10.1 ... linking ... done.
Loading package simple-sendfile-0.2.1 ... linking ... done.
Loading package warp-1.1.0 ... linking ... done.
Loading package yaml-0.5.2 ... linking ... done.
Loading package yesod-default-0.6.1 ... linking ... done.
Loading package shakespeare-text-0.10.5 ... linking ... done.
[2 of 6] Compiling Settings.StaticFiles ( Settings/StaticFiles.hs, dist/build/Settings/StaticFiles.o )
[3 of 6] Compiling Foundation ( Foundation.hs, dist/build/Foundation.o )
[4 of 6] Compiling Import ( Import.hs, dist/build/Import.o )
[5 of 6] Compiling Handler.Root ( Handler/Root.hs, dist/build/Handler/Root.o )
[6 of 6] Compiling Application ( Application.hs, dist/build/Application.o )
Registering helloworld-0.0.0...
Starting development server: runghc -package-confdist/package.conf.inplace -package-confcabal-dev/packages-7.4.1.conf devel.hs

devel.hs:2:1:
Failed to load interface for `Application'
It is not a module in the current program, or in any known package.
Exit code: ExitFailure 1

# Trying directly.
fluttershy:~/Haskell/helloworld$ runghc -package-confdist/package.conf.inplace -package-confcabal-dev/packages-7.4.1.conf devel.hs

devel.hs:2:1:
Failed to load interface for `Application'
It is not a module in the current program, or in any known package.
```

No changes done in the files.