Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9015241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:42:11+00:00 2026-06-16T03:42:11+00:00

I am trying to compile haskell to JS using Fay with one directory after

  • 0

I am trying to compile haskell to JS using Fay with one directory after the --include option like so:

fay --include src\Tmv src\Tmv\Client\Main.hs

There is a SharedTypes.hs file in src\Tmv which defines a module Tmv.SharedTypes that is used in Client\Main.hs. I get the following error:

Could not find module "Tmv.SharedTypes". Use -v to see a list of files searched for.

The -v option does not work. I have tried several variations of the parameters, eg. absolute paths, quotation marks, escaped (double) backslashes.
Configuration: fay 0.10.1.0, ghc 7.4.2 (i386), Windows 7 x64

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:42:12+00:00Added an answer on June 16, 2026 at 3:42 am

    Moving this from a comment, since it apparently resolved the problem:

    When GHC looks for source files, normally it expects a module Foo.Bar to be found as Bar.hs in a subdirectory Foo, relative to whatever “root” directory it starts from. For example, if you start GHCi with Foo as the current directory, you’ll have problems with the module Bar either not being found, or errors because the module name won’t match what GHC expects.

    Since the same rules seem to be in play in your case, to import Tmv.SharedTypes you want SharedTypes.hs to be in a Tmv subdirectory of whatever the base path is, so either creating another Tmv subdirectory or specifying src alone for --include should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to compile this code: #include <iostream> #include <vector> using namespace std; class
While trying to compile an LLVM IR, like this llc main.ll -o main.s &&
While trying to compile, Haskell Platform (2012.2.0.0) I realized I compiled the wrong GHC
I'm trying to compile this function from Learn You a Haskell for Great Good
While trying to compile a 64 bit linux kernel using gcc, I see the
I'm trying to learn Haskell and after an article in reddit about Markov text
I am trying to come up with equivalent of wc -l using Haskell Iteratee
I've installed Haskell via the pre built installer v6.8.2. When trying to compile this
I am trying to implement the Maybe monad from Haskell using the lambda functions
I'm trying to compile the following function in Haskell to mimic differentiation of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.