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

  • Home
  • SEARCH
  • 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 8767315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:46:45+00:00 2026-06-13T16:46:45+00:00

I have a top level file called Datatypes.hs . It’s exposed in my cabal

  • 0

I have a top level file called Datatypes.hs. It’s exposed in my cabal file.

library
    exposed-modules: Application
                     Foundation
                     Import
                     Settings
                     Settings.Development
                     Datatypes
                     Handler.Advise

I’d like to use Datatypes in my test code. Here’s what I have tried

test-suite test
type: exitcode-stdio-1.0
main-is: tests/testclient.hs
hs-source-dirs: .,tests
ghc-options: -Wall

build-depends: base
             , Datatypes
             , conduit == 0.5.2.7
             , attoparsec-conduit == 0.5.0.2
             , transformers == 0.3.0.0
             , resourcet == 0.4.0.2
             , http-conduit                  >= 1.5        && < 1.7
             , utf8-string == 0.3.7
             , aeson == 0.6.0.2

I still get complaints about datatypes in testclient.hs not being defined. Is what I am doing possible? For now I will just paste in my data types into testclient.hs, but I’d like to just be able to refer to Datatypes.hs

  • 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-13T16:46:46+00:00Added an answer on June 13, 2026 at 4:46 pm

    You can’t list individual modules in the build-depends field – use the name of your package instead. For an example, look at the .cabal file for unordered-containers:

    test-suite strictness-properties
      hs-source-dirs: tests
      main-is: Strictness.hs
      type: exitcode-stdio-1.0
    
      build-depends:
        base,
        [...]
        unordered-containers
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a top level application called SearchApp which has a sub-app called TeamApp
My application has several independent top-level windows, which all have completely different functions/workflows. I
Suppose I have a top-level ResourceDictionary element in a XAML file with no C#
Desktop apps have top level menus (File, Edit, Search, ..., Help). Web apps have
I have an index.php file in the top level with other files such as
I have a single SConscript file in a top level directory and I have
In my application I have a Form that for one of the top level
I have a model called newbie. The routes.rb file looks like: Myapp::Application.routes.draw do resources
I have a top level menu in my ShellView and when selecting a sub
I have 10 top-level domains e.g. example1.com, example2.com, example3.com, etc, and each domain has

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.