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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:43:03+00:00 2026-06-12T23:43:03+00:00

I have found a lot of useful information on using Agda as a proof

  • 0

I have found a lot of useful information on using Agda as a proof system. I have found virtually no information on using Agda to write usable programs. I cannot even find a “hello world” example that compiles with the most recent version of Agda.

So,

  1. Are there any good tutorials on Agda as a programming language?

  2. Are there other languages of a similar nature (lazy functional dependently typed) that have more mature documentation for using them as a programming language? (I found tons of great documentation on Coq, but, again, no “Hello World”).

  • 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-12T23:43:04+00:00Added an answer on June 12, 2026 at 11:43 pm

    To print a string in Agda, you need the std lib. You can find a “hello world” example here for Agda 2.2.6 and std lib 0.3. This example doesn’t work for current Agda 2.3.0 and std lib 0.6. I read some sources in std lib 0.6, and find that the following one works:

    module hello where
    
    open import IO.Primitive using (IO; putStrLn)
    open import Data.String using (toCostring; String)
    open import Foreign.Haskell using (Unit)
    
    main : IO Unit
    main = putStrLn (toCostring "Hello, Agda!")
    

    To compile it, you need

    1. save it to “./hello.agda”
    2. download lib-0.6.tar.gz, and unpack it to somewhere, say DIR
    3. cd DIR/ffi && cabal install
    4. agda -i DIR/src -i . -c hello.agda

    On my MacOSX Lion with ghc-7.4.2 and cabal-1.16.0, this example works fine. I get an executable program named “hello” with size 19.1M.

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

Sidebar

Related Questions

I've scored the internet for sources and have found a lot of useful information,
I have found a lot of information on using UIImagePickerController to let the user
I have found this site quite useful to a lot of issues I run
I have done a lot of research on this and haven't found anything useful.
I have found a lot of topics about stress-testing web application. My goals are
I have searched and found a lot of different things but none that actually
I have googled a lot on this and i have found integrations of Linkedin
I have Googled a lot and found a lot of solutions, but none of
OK - I have looked and looked and found a lot of examples but
I have searched a lot and couldn't found the approach to create the small

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.