text:
Q: Haskell error references code that is not in the code? I'm trying to follow the Persistent tutorial, which has this code:
{-# LANGUAGE GADTs                      #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings          #-}
{-# LANGUAGE QuasiQuotes                #-}
{-# LANGUAGE TemplateHaskell            #-}
{-# LANGUAGE TypeFamilies               #-}
import Database.Persist
import Database.Persist.TH
import Database.Persist.Sqlite
import Control.Monad.IO.Class (liftIO)

mkPersist sqlSettings [persistLowerCase|
Person
    name String
    age Int
    deriving Show
|]

But when I try to run it, I get:
src/model.hs:31:1: error:
    • Illegal instance declaration for 'ToBackendKey SqlBackend Post'
        (Only one type can be given in an instance head.
         Use MultiParamTypeClasses if you want to allow more, or zero.)
    • In the instance declaration for 'ToBackendKey SqlBackend Post'

And those declarations (ToBackendKey etc) are not in my code, and not at line 31. What's going on? I have a feeling it's related to TemplateHaskell, but I don't know enough about it to figure this out. How can I debug this?

A: When GHC asks you to add an extension, it's usually a good idea to do so.
The trick here is that the [name|...|] notation is for quasi quotation, which uses Template Haskell to generate code at compile time, much like macros in other languages. So the error is not in your code, but in your code's code!
It's errors like this that make Template Haskell hard to debug, which is why the community is fairly split on its use.

redpajama_set_name: RedPajamaStackExchange


A Miami woman was recently arrested by officers with the Stuart Police Department. She is accused of making fraudulent charges to credit cards that belong to someone else. According to SPD, a report came in about a stolen purse after a credit card company advised the cardholder who was shopping in one store that someone else was using her credit card in a different store.
Reportedly, the owner of the credit card told police that the suspect must be using one of her credit cards that were in her wallet that had been stolen. Officers searched businesses in the reported area and located the suspect who was allegedly using the stolen credit card. Police officers claim to have found on the suspect several credit cards and a driver's license in the name of the woman whose wallet was stolen. She now faces several charges, including grand theft and fraud.
While this Florida woman is on a bond of $40,000, she and her legal counsel are likely focused on preparing a defense to the formal accusations regarding credit card fraud. Any other person in a similar situation may choose to seek legal counsel immediately to build a strong case. A lawyer can work alongside the client to review the evidence and decide upon the best way forward as the case makes its way to court.


Raised by gorillas, Tarzan has made the jungle his home and the animals his friends. But with the appearance of humans, the only world Tarzan has ever known and the one in which he belongs are about to become one.
Tony Goldwyn; Minnie Driver; Glenn Close; Rosie O'Donnell; Lance Henriksen; Tab Murphy; Bob Tzudiker; Noni White; Kevin Lima; Chris Buck; Bonnie Arnold; Phil Collins; Mark Mancina; Edgar Rice Burroughs; Walt Disney Home Entertainment (Firm); Walt Disney Pictures.
Soundtrack in English, French or Spanish; subtitles for the deaf and hard of hearing.
Based on the story: Tarzan of the apes / Edgar Rice Burroughs.
Special features include: deleted scenes; music videos; audio commentary; games and activities.
Editor, Gregory Perler ; songs by Phil Collins ; score by Mark Mancina.
Voices: Tony Goldwyn, Minnie Driver, Glenn Close, Alex D. Linz, Rosie O'Donnell, Brian Blessed, Nigel Hawthorne, Lance Henriksen.
DVD; Dolby digital 5.1 surround; Dolby digital 5.0; region 1, widescreen (1.66:1.).
Walt Disney Pictures presents ; screenplay by Tab Murphy and Bob Tzudiker & Noni White ; produced by Bonnie Arnold ; directed by Kevin Lima and Chris Buck.
Add tags for "Walt Disney's: Tarzan". Be the first.
schema:contributor <http://experiment.worldcat.org/entity/work/data/4415174946#Organization/walt_disney_pictures> ; # Walt Disney Pictures.
schema:isPartOf <http://experiment.worldcat.org/entity/work/data/4415174946#Series/disney_blu_ray> ; # Disney Blu-ray.
<http://experiment.worldcat.org/entity/work/data/4415174946#Organization/walt_disney_pictures> # Walt Disney Pictures.


text:
Ofcom warns area codes could soon become a thing of the past as phone calls surge online
In 2012, the UK made a total of 103 billion minutes of landline calls, but in 2017 that fell to just 54 billion
Most of out phone calls are now made over the internet
Emma MunbodhMoney Editor
Britons now spend nearly half as much time using a landline as they did six years ago, but use 10 times as much mobile data, according to Ofcom research.
The telecoms regulator said data shows changing attitudes towards traditional landlines and telephone numbers, including fewer people now memorising phone numbers because they can store them in their mobile.
According to the research, the amount of time on landline calls in the UK fell from 103 billion minutes in 2012 to 54 billion in 2017.
When was the last time you picked up your landline to make a call? (
fStop)
In the same period, mobile call minutes have increased from 132.1 billion to 148.6 billion, but the average person's monthly mobile data use has soared from 0.2 gigabytes to 1.9 gigabytes.
The regulator's head of numbering, Liz Greenberg, said the trend could see changes to the way phone numbers are created.
Ofcom said it has already begun investigating how to manage the use of UK landline telephones numbers in the future, including the potential to use blockchain technology.
Virgin Media and EE fined £13.3m for overcharging phone and broadband customers
The technology, initially created as the infrastructure for decentralised cryptocurrencies, could be used to make it quicker and easier for landline customers to switch providers while keeping the same phone number as well as potentially reducing nuisance calls.
It said added that all 610 area codes could also be scrapped with the growth of broadband-based call technology.
When area codes were first created in the 1950s, they had particular significance on a telephone dial.
Numbers corresponded to two-letter identifiers, such as AB (22) for Aberdeen. So today, Aberdeen's area code is '01224' (01AB4).
"Some of us can remember a time when we stored phone numbers in our head, rather than our mobile. But the way we use and feel about telephone numbers is changing," she said.
"In the future, as more calls are made over broadband, dialling codes won't need to be fixed to a particular part of the country. So the question is - could area codes become a thing of the past?"
Top money stories
Morrisons selling Easter eggs for 25p
Furlough pay day confirmed
KFC re-opens 100s of stores for delivery
Supermarket delivery rights explained
Landline callsSmartphonesNuisance Calls
Get our money-saving tips and top offers direct to your inbox with the Mirror Money newsletter
Landline calls
Line of Duty star Vicky McClure says it would be 'weird' if there's no more episodesVicky McClure

redpajama_set_name: RedPajamaCommonCrawl


Over 25,000 New Zealand-born residents now call America home, but what drives talented Kiwis to make the leap? 'The Unortho_docs' profiles eight New Zealanders in pursuit of their American dream.
In California we discover a restaurant empress (Anna Weinberg) who has taken over the San Francisco food scene, a pop princess (Chelsea Jade) on the verge of her maiden album release, a legendary skateboarder (Richie Jackson) who has changed the way people look at the sport and award-winning electronic producers (Truth) making music over the internet.
On the East Coast we meet a photographer and director (Tom Gould) whose love of hip-hop culture led him to work with some of his idols, a fashion illustrator (Nadeesha Godamunne) live drawing on the subway, a film director (Sally Tran) cutting shapes in the New York scene and a world-renowned tattoo artist (Victor J Webster) making his mark on a daily basis in Brooklyn.
Each person we meet is on the cusp of personal and professional success - but what does it take to make it in a country of 325 million people, and what role has New Zealand played in giving them the edge?


text:
Q: Salesforce Mobile not selecting correct picklist values I am experiencing a weird problem. I have created a "Mobile Call Report" Form in Salesforce. This form can be accessed via the browser as well as the Salesforce1 App via your mobile device. Recently I added two picklist dropdown menues to this form. When I view this form(and the picklist menu) in my browser, everything looks and works great. But the weird thing is, when I view it in my mobile app, I select a value from the picklist, it selects the value one below what I selected. Then I will go ahead tap anywhere on the form and then it ends up selecting what I actually chose. Has anyone experienced anything like this before. I have added some snippets of my Angular code below. If anyone needs to see any backend APEX classes, I can add some of that as well. Thank you
<apex:page showHeader="false" sidebar="false" standardStylesheets="false" docType="html-5.0"
            applyHtmlTag="false"
            applyBodyTag="false">

<meta charset="utf-8"/>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/>

<apex:stylesheet value="{!URLFOR($Resource.sf1MobilePackDist,'sf1MobilePackDist/css/bootstrap-namespaced.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.sf1MobilePackDist,'sf1MobilePackDist/css/docs.min.css')}"/>

<apex:stylesheet value="{!URLFOR($Resource.s1styles_css)}"/>

        <col style="width:20%" />
        <col style="width:80%" />

New Call Report

Planned Agency Visits

Create New Contact

{{callReport.Agency__r.Name}}

{{callReport.Agency__r.Owner_Master__c}}   {{callReport.Agency__r.Sub_Stat__c}} (sub)   {{callReport.Agency__r.BillingCity}}

 <form name="callreportForm" id="callreportFormId" class="form-horizontal" novalidate="true" role="form" >

Date of Call*

          <input type="text" class="sf1inputdate" datepicker-popup="MM/dd/yyyy" readonly="readonly"
                                                ng-model="callReport.Date_of_Call__c"  is-open="calendaropened"
                                                datepicker-options="calendarOptions"  ng-required="true" />

Agency Interaction Type*

           <select  class="sf1select"
                    ng-model="callReport.Agency_Touch_Point__c"
                    ng-options="t.value as t.name for t in agencytouchpoints"  ng-required="true"/>

Discussion Points

           <select id="discussionPointsSelect"
                    class="sf1selectmultiple" multiple="multiple"
                    ng-model="callReport.Discussion_Points__c"
                    ng-options="d.value as d.name for d in discussPointLst" />

Report Focus

            <select  class="sf1select"
                    id="reportFocusSelect"
                    ng-model="callReport.Report_Focus__c"
                    ng-change="changeDiscussionPointPicklist()"
                    ng-options="f.value as f.name for f in focusoptions" />

Related Notifications

           <select id="relatedAlertsSelect"
                    class="sf1selectmultiple" multiple="multiple"
                    ng-model="callReport.Related_Notifications__c"
                    ng-options="d.value as d.name for d in myNotificationForAgencyPickList" />

Time Spent at Agency Visit/Call*

                        <select  class="sf1select"
                            id="reportFocusSelect"
                            ng-model="callReport.Duration_of_Visit_Call_mins__c"
                            ng-change="changeDiscussionPointPicklist()"
                            ng-options="t.value as t.name for t in timeoptions" ng-required="true"/>

Time Spent in Transit to Agency

                        <select  class="sf1select"
                            id="reportFocusSelect"
                            ng-model="callReport.Transit_to_Agency__c"
                            ng-change="changeDiscussionPointPicklist()"
                            ng-options="t.value as t.name for t in transitoptions"/>


Give your temperature-sensitive belongings the extra protection they deserve with a heated storage unit for rent from Comstock Boat and RV Storage. Our Mound House, NV, heated storage units keep your items warm in the winter.
Why choose heated storage over traditional storage? Things like electronics, paperwork, art, upholstered furniture, and even household appliances can be harmed by extreme temperatures. You can diminish this risk by selecting a unit that never gets too cold.
Learn more about Comstock Boat and RV Storage and our heated storage units. Give us a call today.


text:
Service / Parts:	(609) 261-7835
vs. The 2021 BMW X7
The Lincoln Navigator is a true pioneer of the SUV industry. This year's model is no exception. The 2021 Lincoln Navigator is more powerful, more spacious, and packed with more advanced modern technology than competing vehicles like the 2021 BMW X7.
Premium Lincoln Luxury Power
When it comes to premium SUVs, don't you want a ride that'll perform to the highest possible standards you require?
Under the hood of the 2021 Lincoln Navigator, you'll find a 3.5L V6 premium gasoline engine that's capable of producing 450 horsepower, 510 pound-feet of torque, and 6,200 pounds of maximum trailer weight capacity.
By comparison, the 2021 BMW X7 doesn't have quite the same gusto. The X7 offers a standard 3.0L I-6 premium gasoline engine that is only capable of producing 335 horsepower, 330 pound-feet of torque, and 5,400 pounds of maximum trailer weight capacity.
Ready for a Change of Pace?
Take a Look at Our Inventory
SHOP NEWSHOP PRE-OWNED
Refined Lincoln Luxury Space
Luxury SUVs are really all about comfort, and what better way to showcase comfort than by offering much more interior space than the competition.
The 2021 Lincoln Navigator offers 172 cubic feet of total passenger volume, including more space in typically tight areas. The all-new Lincoln Navigator provides 43.9 inches of front legroom, 65.2 inches of front shoulder room, 42.6 inches of rear legroom, and 65.1 inches of rear shoulder room.
The 2021 BMW X7 is significantly tighter in these same areas, providing just 39.8 inches of front legroom, 60 inches of front shoulder room, 37.6 inches of rear legroom, and 58.1 inches of rear shoulder room.
Advanced Lincoln Luxury Technology
Another key area of comfort when it comes to luxury SUVs, lies with it's unique set of advanced automotive technology.
The 2021 Lincoln Navigator is at the forefront of this industry, thanks to it's available Lincoln Co-Pilot360 technologies, which include incredible driver-assist features like a lane-keeping system, pre-collision assist with automatic emergency braking, enhanced active park assist, and forward and reverse sensing.
The 2021 Lincoln Navigator is available right now at Miller Lincoln in Lumberton, NJ! Click here to check out our awesome inventory of this luxury ride, then be sure to contact us online, by phone, or in person today to take one for a test drive. Always remember, Miller Makes It Better!
Custom Vehicle Landing Page by BitMoto


We had the wonderful opportunity to interview Ashlee Proffitt a business owner and brand design expert.
Gospel Transformation Bible. I'm reading the Bible through in a year, so that goal consumes a good chunk of my reading time.
Inc. & Entrepreneur Magazines because although I love running a business, chatting business and listening to others talk about business it doesn't come natural to me. So, I make small attempts to learn what I can, when I can!
House Beautiful magazine. Because in another life I would be an interior designer. And this type of "reading" fills up my creative tank.
Describe your perfect Friday night?
I have two perfect Friday night scenarios. Every other Friday night is date night with my cute husband of over 10 years. Those Friday nights are just about perfect as long as they include my husband, a cute outfit, and a new local restaurant to explore. And a glass or two of pinot noir.
The opposite Friday nights are Family Movie & Pizza Night. Those Fridays nights are equally amazing and include my sweet husband (also known as the best dad ever), my 3 littles (Andrew, 8, Asher, 5, and Adee, 3), the latest family friendly movie available at Redbox, and the biggest cheesiest pizza available. And comfy pjs and my favorite throw. And Shark Tank. And snuggles.
Describe one of your hidden talents?
Is organization a talent?! If so, then yes. And it's hidden because no one knows that all of the closets in my house are color coordinated and organized by sleeve length. All items must have a purpose and a place or I go crazy and throw it away (or donate it.) And I am CRAZY good at creating systems. I nerd out on finding ways to save time and be more efficient. So weird, I know. Hence why it is a hidden talent.
Shay Cochrane! My best friend and fellow creative entrepreneur. She has a genius business mind and is one of the most creative women I have ever known. And a genuinely fabulous wife to her husband and mama to her two girls. I look up to her in about a million different ways.


text:
1st Source Bank Commercialization Award goes to Mendoza professor Joe Urbany
Joe Urbany
Research that makes it to the marketplace doesn't only originate in science and engineering labs. For the first time since its inception, the 1st Source Bank Commercialization Award is recognizing research from the University of Notre Dame's Mendoza College of Business. Joe Urbany, professor of marketing and co-founder of Vennli, has been named recipient of the 1st Source Bank Commercialization Award celebrating his research that helps businesses realize their competitive advantage through customer insights.
Established in 2008 with a $1 million gift from 1st Source Bank, the award is presented each year to faculty from Notre Dame or the Indiana University School of Medicine-South Bend who have most successfully transitioned their technology from the lab to the marketplace.
Vennli is a technology for creating growth strategies by turning customer insights into action. In 2010 Urbany co-wrote a book titled "Grow by Focusing on What Matters: Competitive Strategy in 3-Circles" with fellow Notre Dame professor Jim Davis. The premise of the book is that growth and competitive advantage are about effective positioning, and the 3-Circle Model facilitates speed of understanding and action by focusing strategic attention on what influences customer decisions.
Founded in 2013, Vennli is based on this proven model developed by Urbany and with the software expertise of co-founder Gary Gigot. Vennli is a SaaS (software as a service) platform with a built-in electronic survey that makes customer research simple and fast and presents the results in an intuitive way so businesses know exactly what to do to increase their competitive advantage. The Vennli software is designed to replicate the 3-Circle model with substantial improvements allowed by technology, such as step-by-step guidance, a built-in survey design and research platform, automatic analysis of customer feedback, continuous collaboration among team members, and the ability to store a portfolio of strategic ideas.
In 2014, Vennli launched a beta program with more than 80 customers that spanned various industries, geography and size. Urbany's leadership and commitment were instrumental to the success of the beta program and the subsequent launch of the technology to the market.
The 1st Source Award, which carries a $20,000 cash prize, was presented Tuesday (April 14) at the Gillespie Center with the theme "It Takes a Village to Commercialize an Idea."
Other finalists for the award included Gary Bernstein for Indiana Integrated Circuit LLC, Patrick Fay for Traycer Diagnostic Systems, Malcolm Fraser for Transposagen Biopharmaceuticals, Michael Lemmon for EmNet, Marvin Miller for Hsiri Therapeutics, Carol Tanner and Steve Ruggiero for LightSprite LLC, and Bradley Smith for Molecular Targeting Technologies Inc.
In addition to Urbany, other individuals and organizations were honored for their work in 2014, including:
One hundred and eight faculty who submitted 180 disclosures.
Thirty-three inventors who were awarded 24 patents.
The licensing of 13 technologies representing the work of 19 researchers.
Investors and mentors from six firms and organizations on the local, state, regional and national levels.
Underwriters and firms supporting Proof of Technology efforts.
Twelve on- and off-campus programs and partnering entities, ranging from the Cleveland Clinic Innovations to incubators to entrepreneurial programs and contests to patent law support.
The keynote speaker at this year's event was Michael D. Rhodin, senior vice president, IBM Watson. Watson is one of IBM's most significant innovations in the company's 103-year history and represents a new era of information technology.
Contact: Pat McMahon, Office of Research, 574-631-1322, mcmahon.89@nd.edu
The neuroscience of behavioral change: Why intention, attention and persistence matter
Researchers in chemistry, engineering, physics and biological sciences honored by AAAS
Rapid plant evolution may make coastal regions more susceptible to flooding and sea level rise, study shows
Anthropologist wins NEH fellowship to explore toll of climate change in Sierra Leone


text:
Home Abiy Ahmed Eritrea Ethiopia Isaias Afwerki News Video Eritrea President Isaias Afwerki in Ethiopia for landmark visit
Eritrea President Isaias Afwerki in Ethiopia for landmark visit
Admin 8:27 AM Abiy Ahmed, Eritrea, Ethiopia, Isaias Afwerki, News, Video
HE PM Dr Abiy presented to HE President Isaias a gift of a live Camel, all wrapped with Eritrean & Ethiopian flags & flowers as a symbol of the blossoming friendship.
By AlJazeera
Eritrea's President Isaias Afwerki has arrived in Ethiopia's capital, Addis Ababa, for a three-day state visit, as part of an unprecedented softening of tensions between the neighbouring countries.
Saturday's visit by Isaias, his first in 20 years, comes a week after Ethiopia's Prime Minister Abiy Ahmed made a landmark visit to Eritrea's capital, Asmara.
"Words cannot express the joy we are feeling now. History is being made as we speak," Isaias said during a lunch hosted by Abiy.
"Lives have perished, but we are lucky to observe today ... We are one people - whoever forgets that does not understand our situation," he added.
An agreement signed in Asmara by the two Horn of Africa nations on Monday formally ended a conflict that has been ongoing for more than two decades.
The newly appointed reformist Abiy first instigated the peace overtures and restoration of relations in April.
Al Jazeera's Mohammed Adow, reporting from Addis Ababa, said that there was a mode of jubilation in the Ethiopian capital.
"People are really happy, although they cannot fully comprehend the speed that things have happened in the last month," he said.
"Both countries have a lot to gain from the resumption of relations - Ethiopia more than Eritrea, as it is landlocked. Ethiopia is looking forward to using Eritrea's ports instead of using the port of Djibouti," he added.
"We still do not know what will happen to the disputed lands between the two countries and to the people living on those lands."
Ethiopia's government spokesman said Isaias and his delegation would visit an industrial park in the southern Ethiopian town of Hawassa later on Saturday. Isaias was also due to give a speech in Addis Ababa on Sunday.
Eritrea and Ethiopia have so far agreed to open embassies, develop ports and restart flights.
Eritrea is due to reopen its embassy in Addis Ababa on Monday for the first time since 1998.
Eritrea's Information Minister Yemane Meskel said on Twitter that Isaias was accompanied by several ministers and other senior government officials.
Abiy, who is also trying to bring stability to a country that has been torn by protests since 2015, survived a grenade attack last month.
As part of the thawing of relations, Ethiopian Airlines is due to resume commercial flights to Asmara on Wednesday.
Eritrea President Isaias Afwerki in Ethiopia for landmark visit Reviewed by Admin on 8:27 AM Rating: 5
Abiy Ahmed Eritrea Ethiopia Isaias Afwerki News Video