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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:45:21+00:00 2026-05-30T01:45:21+00:00

What are possible values for the os function from the System.Info package in the

  • 0

What are possible values for the “os” function from the System.Info package in the Standard Libraries?

Also: Are these values reliable, are they portable across many compilers? Will Hugs on windows return the same value as ghc on windows?

Are there better ways for sniffing for the operating system?

  • 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-05-30T01:45:22+00:00Added an answer on May 30, 2026 at 1:45 am

    The variables for GHC are taken from the “autotools” tool suite, the tool suite that produces the well-known “configure” scripts that are almost always used when compiling something (./configure; make; make install). configure uses a standard “compiler identification string” like x86_64-unknown-linux-gnu for C compilers, and additionally computes a more detailed set of variables that identify the host platform. These variables are used in the generated Makefile of GHC, and this file further produces the ghcplatform.h file you see in the Info.hs file.

    Almost the exact same procedure is used by HUGS to get the platform variables, except that the header file is named differently (as you are able to see in the source code that you linked).

    Since both GHC and HUGS98 on Windows are compiled with MinGW and autotools as well, the variables are consistent on that platform.

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

Sidebar

Related Questions

Is it possible to get the 'nth' return value from a function without having
Is it possible for a function to return two values? Array is possible if
Is there a way to get all possible values from a MySQL enum column?
Is it possible to change values of settings within a ClientSettingsSection (System.Configuration.ClientSettingsSection) in a
Is it possible get the assembly information from an imported MEF function? I need
Is it possible to inspect the return value of a function in gdb assuming
I need a status column that will have about a dozen possible values. Is
SQLException.getSQLState retrieves the SQLState for the SQLException object. What are all the possible values
The documentation for ref() mentions several possible return values. I understand most of them,
I want to display all the possible enum values as Radio buttons. I am

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.