how do we compile and run a haskell program on terminal?
Cannot compile Glasgow Haskell Compiler
Cannot change brightness setting using function buttons or using the brightness control bar on HP laptop Why is this sentence correct? “She suggested that he go to the cinema.” Here's an example question from the :     On the last day of a one-week sale, customers numbered 149 through 201 were waited on. How many customers were waited on that day?   Possible answers: 51, 52, 53, 152, 153.   The correct answer here is 53, which is the result of (201-149) + 1 = 53.  What's the reasoning in adding the +1? Will taking a gap year after my Master's degree improve or degrade my potential of doing a PhD? Roots of a functionwith condition $\int_0^\pi f(x) \sin x dx = \int_0^\pi f(x) \cos x dx =0.$ Let $f:[0,\pi] \rightarrow \Bbb R$ be a continuous function which satisfies $\int_0^\pi f(x) \sin x dx = \int_0^\pi f(x) \cos x dx =0.$ Show that $f$ has at least two roots. What is object serialization? Makeindex error when ! used in \index in align environment See MWE below. The symbol ! in the \index causes an error. This is only the case in align environments (not in equation). So it seems to have to do something with amsmath. If ! is put in an \mbox there is no error. But then of course the font size is not adjusted to subindices. Curiously enough, \index{$C_{K!!}$} (two exclamation marks) doesn't cause any error.    \documentclass{article} \usepackage{amsmath} \usepackage{imakeidx} \makeindex \begin{document} \begin{align} y\index{$C_{K!}$} \end{align} \printindex \end{document}     Any solutions suggested? Why is it that Android still can't be installed as regular OS? Are there any technical or others reasons why Android is still a firmware and not an OS which can be just installed without a lot of hassle?  Why there is no universal image which could detect appropriate drivers (kernel modules), partition NAND in some standard way and configure boot loader to boot updated OS version?  What stops Google from making a real (less firmware-like) OS (an OS for small ARM, x86 etc. devices)? I obtained a licence key for Windows 8 through DreamSpark. Is there a way to download a Windows 8 ISO image like you could for Windows 7? I am on a non-Windows machine, so I cannot use the Secure Download Manager to download Windows 8 directly using DreamSpark. When to use "If I was" vs. "If I were"? If I was... If I were...   When is it correct to use "If I was" vs. "If I were" in standard English? Behaviour of increment and decrement operators in Python Wifi doesnt work on fresh ubuntu 16.04 I am looking for a proof possibly using the sandwich theorem and/or Bernoulli's inequality for proving the following statement:  If $x&gt;0$ then $x^{1/n}$ tends to $1$. What is the limit of series $\frac{1}{2 \cdot 3 \cdot 4} + \frac{1}{4 \cdot 5 \cdot 6} + \frac{1}{6 \cdot 7 \cdot 8} + \cdots $?  The $n$th summand is $\frac{1}{(2n)(2n + 1)(2n+2)} = \frac{1}{4} \frac{1}{n(2n+1)(n+1)}$.  I have tried expressing this as a telescoping sum, or as the limit of Riemann sums of a partition (the usual methods I normally try when doing this type of question- what are some other strategies?) Does a preprint include revisions made in response to peer review? This is related to but not answered in .  After an author has submitted a manuscript to a journal for peer-review, very often the journal asks the author to revise (and resubmit) the manuscript as a precondition for its publication. I am wondering whether the term preprint refers to the manuscript before or after its authors made these revisions.  If a preprint includes revisions made in response to peer review, then there is only a slight difference, mostly regarding layout and style, between the preprint and the article that is published in the journal. From a reader’s perspective, there would be no point in paying for access to the article, since they can simply download the preprint free of charge. A publisher would probably want to prevent their authors (by publication agreements etc.) from publishing preprints that differ from the respective journal article only in form.  As a side question, what kind of preprints do publishers tolerate, as a rule? How would one format an Excel sheet so numeric fields are set to numeric field types when importing to ArcGIS 10.2? Horizontal Probability Tree with Level Labels Windows 10 April 2018 Update added an extra Language and I cannot remove it I have just updated to Windows 10 April 2018 Update (1803 / 17134.1)  I had my laptop configured completely as UK with only a UK keyboard layout  Since the update, a US keyboard has been added so I now see the switch icon in my task bar    It appears that all the keyboard language settings are now migrated to the new Settings app and no longer in the old Control Panel    However, as can be seen from the screenshot above, the Remove button under the newly added US layout is greyed out (as is the UK one)  How can I remove the US layout?  UPDATE 1: I just updated my desktop and it hasn't added a US keyboard!  UPDATE 2: I added a third language (French) and was able to remove it, the button was enabled. The US remove button remained disabled both after adding French and after removing it.  UPDATE 3: I added another English language (Australian) and this cannot be removed! Button is disabled  UPDATE 4: I followed this  except I removed the values from the keys for all users and also the values under the Substitutions key. The task bar switch icon is gone but I still have all 3 languages in Settings still Measuring the distance between lines and points in QGIS Using QGIS - I have a vector of fault lines.  I have point data in the form of a csv which I have also loaded into QGIS.  I need to know how far each point is from the nearest fault line then enter this distance in a new column in the csv file. Any ideas? Does anybody know of a method to trigger an event in Prototype, as you can with jQuery's trigger function?  I have bound an event listener using the observe method, but I would also like to be able to fire the event programatically.  Thanks in advance