Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Haskell – Cabal “OS” logo with operating system version

October 17, 2021By Simo Os Theory

I want a logo that is conditional on the operating system version, not just the operating system:

if os (darwin) && os-version() >= 10.7

or

if os-version(>=10.7)

Or something with that kind of behavior.

I can do it with make and sw_vers-productVersion, but I want to save the Cabal file with build-type: Simple (I mean it even has a frame field) .

Context: I have some bindings to some of the Cocoa functions introduced in OSX 10.7. I hope that Cabal will not try to build on older Macs and not through useless “symbol not found” errors or Methods such as this to send spam to the person who installed the package.

https://www.haskell.org/cabal/users-guide/developing-packages.html#configurations (under “conditions”) seems Say no.

You are right. Cabal does not provide this feature. This is a relevant ticket. However, for OS X, you don’t need to move from the build type: simple. Instead, you can use CPP and macros provided by apple, as described in another SO question.

I want a The operating system version is a conditional sign, not just the operating system:

if os(darwin) && os-version() >= 10.7

Either

if os-version(>=10.7)

Or something with that behavior.

I You can do it with make and sw_vers-productVersion, but I want to save Cabal files with build-type: Simple (I mean it even has a frame field).

Context: I introduced it in OSX 10.7 Some of the Cocoa functions have some bindings. I hope that Cabal does not try to work on older Macs Build instead of spamming the person who installed the package through useless “symbol not found” errors or the like.

https://www.haskell.org/cabal/users-guide/developing -packages.html#configurations (under “conditions”) seems to say no.

You are right. Cabal does not provide this feature. It is relevant ticket. However, for OS X, you don’t need to move from the build type: simple. Instead, you can use CPP and macros provided by apple, as described in another SO question.

cagal, Haskell, logo, OS, version, with operating system

Post navigation

What is the difference between the page and blocks in the operating system – operating system?
Mathematical Optimization – Best Open Source Mix Integer Optimization Solution

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5321 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment Cancel reply

Your email address will not be published.

Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress