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 7843771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:39:25+00:00 2026-06-02T16:39:25+00:00

So, I’ve written a neat little program that can analyse Japanese text and give

  • 0

So, I’ve written a neat little program that can analyse Japanese text and give the user various statistics regarding Kanji usage therein and I’d like to release this program to the world. The problem is, I have no idea how to create a “release”.

I realize that *nix systems often put executables (or symlinks) in places like /usr/bin, and that build scripts often put them there automatically, but it turns out I went and wrote this thing in Haskell.

Then just use cabal!

…I hear you say. Well I would, except that my program has a good amount of data files that it reads out of, and of course the program needs to know where those files are. By using cabal, would the executable not be thrown to some weird project filepath a la:

/usr/share/haskell/cabal/morecabal-1.0.4/myproject-1.3.4.1.a/thisisridiculous/

At current I run the executable out of its source directory, and it’s looking for the data files in “./data”.
Is there a typical format for installation paths so I could tell my program ahead of time in the source where to look for the data?

My eventual goal is to make this an Arch Linux package. Can anyone help me get started?

For the curious, the git repo is here. Thanks in advance for any help you can give.

  • 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-02T16:39:27+00:00Added an answer on June 2, 2026 at 4:39 pm

    Have a look at how an existing Haskell project, such as Gitit is packaged for Arch linux. In particular, the PKGBUILD.

    You can also download The gitit tarball and have a look at how to use the data-files: directive in the gitit.cabal file.

    I don’t read Haskell, but from what I understand of the source, the file Paths_gigit.hs (which can be found here. ) is generated by cabal so that you only have to worry about relative paths. Then it’s just a matter of importing it and using the getDataFileName function.

    Packaging for Arch:

    • The wiki guide
    • The PKGBUILD file description
    • The makepkg guide

    Packaging for cabal:

    • Haskell Packaging wikibook
    • The Cabal User’s Guide

    Packaging for both:

    • Haskell Package guidelines on the Archlinux wiki
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I need to clean up various Word 'smart' characters in user input, including but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into

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.